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


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

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

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

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

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

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

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

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