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


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

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

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

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

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

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

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

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