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


apps/speed.c:2496:1: start of procedure do_multi()
2494.   
2495.   #ifdef HAVE_FORK
2496. > static int do_multi(int multi)
2497.   	{
2498.   	int n;

apps/speed.c:2501:2: 
2499.   	int fd[2];
2500.   	int *fds;
2501. > 	static char sep[]=":";
2502.   
2503.   	fds=malloc(multi*sizeof *fds);

apps/speed.c:2503:2: 
2501.   	static char sep[]=":";
2502.   
2503. > 	fds=malloc(multi*sizeof *fds);
2504.   	for(n=0 ; n < multi ; ++n)
2505.   		{

apps/speed.c:2504:6: 
2502.   
2503.   	fds=malloc(multi*sizeof *fds);
2504. > 	for(n=0 ; n < multi ; ++n)
2505.   		{
2506.   		pipe(fd);

apps/speed.c:2504:12: Loop condition is true. Entering loop body
2502.   
2503.   	fds=malloc(multi*sizeof *fds);
2504.   	for(n=0 ; n < multi ; ++n)
                   ^
2505.   		{
2506.   		pipe(fd);

apps/speed.c:2506:3: 
2504.   	for(n=0 ; n < multi ; ++n)
2505.   		{
2506. > 		pipe(fd);
2507.   		if(fork())
2508.   			{

apps/speed.c:2507:6: Taking false branch
2505.   		{
2506.   		pipe(fd);
2507.   		if(fork())
             ^
2508.   			{
2509.   			close(fd[1]);

apps/speed.c:2514:4: 
2512.   		else
2513.   			{
2514. > 			close(fd[0]);
2515.   			close(1);
2516.   			dup(fd[1]);
