apps/speed.c:2415: error: MEMORY_LEAK
  memory dynamically allocated by call to `malloc()` at line 2404, column 6 is not reachable after line 2415, column 10.
Showing all 8 steps of the trace


apps/speed.c:2397:1: start of procedure do_multi()
2395.   
2396.   #ifdef HAVE_FORK
2397. > static int do_multi(int multi)
2398.   	{
2399.   	int n;

apps/speed.c:2402:2: 
2400.   	int fd[2];
2401.   	int *fds;
2402. > 	static char sep[]=":";
2403.   
2404.   	fds=malloc(multi*sizeof *fds);

apps/speed.c:2404:2: 
2402.   	static char sep[]=":";
2403.   
2404. > 	fds=malloc(multi*sizeof *fds);
2405.   	for(n=0 ; n < multi ; ++n)
2406.   		{

apps/speed.c:2405:6: 
2403.   
2404.   	fds=malloc(multi*sizeof *fds);
2405. > 	for(n=0 ; n < multi ; ++n)
2406.   		{
2407.   		pipe(fd);

apps/speed.c:2405:12: Loop condition is true. Entering loop body
2403.   
2404.   	fds=malloc(multi*sizeof *fds);
2405.   	for(n=0 ; n < multi ; ++n)
                   ^
2406.   		{
2407.   		pipe(fd);

apps/speed.c:2407:3: 
2405.   	for(n=0 ; n < multi ; ++n)
2406.   		{
2407. > 		pipe(fd);
2408.   		if(fork())
2409.   			{

apps/speed.c:2408:6: Taking false branch
2406.   		{
2407.   		pipe(fd);
2408.   		if(fork())
             ^
2409.   			{
2410.   			close(fd[1]);

apps/speed.c:2415:4: 
2413.   		else
2414.   			{
2415. > 			close(fd[0]);
2416.   			close(1);
2417.   			dup(fd[1]);
