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


apps/speed.c:2396:1: start of procedure do_multi()
2394.   
2395.   #ifdef HAVE_FORK
2396. > static int do_multi(int multi)
2397.   	{
2398.   	int n;

apps/speed.c:2401:2: 
2399.   	int fd[2];
2400.   	int *fds;
2401. > 	static char sep[]=":";
2402.   
2403.   	fds=malloc(multi*sizeof *fds);

apps/speed.c:2403:2: 
2401.   	static char sep[]=":";
2402.   
2403. > 	fds=malloc(multi*sizeof *fds);
2404.   	for(n=0 ; n < multi ; ++n)
2405.   		{

apps/speed.c:2404:6: 
2402.   
2403.   	fds=malloc(multi*sizeof *fds);
2404. > 	for(n=0 ; n < multi ; ++n)
2405.   		{
2406.   		pipe(fd);

apps/speed.c:2404:12: Loop condition is true. Entering loop body
2402.   
2403.   	fds=malloc(multi*sizeof *fds);
2404.   	for(n=0 ; n < multi ; ++n)
                   ^
2405.   		{
2406.   		pipe(fd);

apps/speed.c:2406:3: 
2404.   	for(n=0 ; n < multi ; ++n)
2405.   		{
2406. > 		pipe(fd);
2407.   		if(fork())
2408.   			{

apps/speed.c:2407:6: Taking false branch
2405.   		{
2406.   		pipe(fd);
2407.   		if(fork())
             ^
2408.   			{
2409.   			close(fd[1]);

apps/speed.c:2414:4: 
2412.   		else
2413.   			{
2414. > 			close(fd[0]);
2415.   			close(1);
2416.   			dup(fd[1]);
