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


apps/speed.c:2489:1: start of procedure do_multi()
2487.       }
2488.   
2489. > static int do_multi(int multi)
2490.   	{
2491.   	int n;

apps/speed.c:2494:2: 
2492.   	int fd[2];
2493.   	int *fds;
2494. > 	static char sep[]=":";
2495.   
2496.   	fds=malloc(multi*sizeof *fds);

apps/speed.c:2496:2: 
2494.   	static char sep[]=":";
2495.   
2496. > 	fds=malloc(multi*sizeof *fds);
2497.   	for(n=0 ; n < multi ; ++n)
2498.   		{

apps/speed.c:2497:6: 
2495.   
2496.   	fds=malloc(multi*sizeof *fds);
2497. > 	for(n=0 ; n < multi ; ++n)
2498.   		{
2499.   		pipe(fd);

apps/speed.c:2497:12: Loop condition is true. Entering loop body
2495.   
2496.   	fds=malloc(multi*sizeof *fds);
2497.   	for(n=0 ; n < multi ; ++n)
                   ^
2498.   		{
2499.   		pipe(fd);

apps/speed.c:2499:3: 
2497.   	for(n=0 ; n < multi ; ++n)
2498.   		{
2499. > 		pipe(fd);
2500.   		if(fork())
2501.   			{

apps/speed.c:2500:6: Taking false branch
2498.   		{
2499.   		pipe(fd);
2500.   		if(fork())
             ^
2501.   			{
2502.   			close(fd[1]);

apps/speed.c:2507:4: 
2505.   		else
2506.   			{
2507. > 			close(fd[0]);
2508.   			close(1);
2509.   			dup(fd[1]);
