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


apps/speed.c:2540:1: start of procedure do_multi()
2538.   
2539.   #ifdef HAVE_FORK
2540. > static int do_multi(int multi)
2541.   	{
2542.   	int n;

apps/speed.c:2545:2: 
2543.   	int fd[2];
2544.   	int *fds;
2545. > 	static char sep[]=":";
2546.   
2547.   	fds=malloc(multi*sizeof *fds);

apps/speed.c:2547:2: 
2545.   	static char sep[]=":";
2546.   
2547. > 	fds=malloc(multi*sizeof *fds);
2548.   	for(n=0 ; n < multi ; ++n)
2549.   		{

apps/speed.c:2548:6: 
2546.   
2547.   	fds=malloc(multi*sizeof *fds);
2548. > 	for(n=0 ; n < multi ; ++n)
2549.   		{
2550.   		pipe(fd);

apps/speed.c:2548:12: Loop condition is true. Entering loop body
2546.   
2547.   	fds=malloc(multi*sizeof *fds);
2548.   	for(n=0 ; n < multi ; ++n)
                   ^
2549.   		{
2550.   		pipe(fd);

apps/speed.c:2550:3: 
2548.   	for(n=0 ; n < multi ; ++n)
2549.   		{
2550. > 		pipe(fd);
2551.   		if(fork())
2552.   			{

apps/speed.c:2551:6: Taking false branch
2549.   		{
2550.   		pipe(fd);
2551.   		if(fork())
             ^
2552.   			{
2553.   			close(fd[1]);

apps/speed.c:2558:4: 
2556.   		else
2557.   			{
2558. > 			close(fd[0]);
2559.   			close(1);
2560.   			dup(fd[1]);
