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


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

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

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

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

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

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

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

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