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


apps/speed.c:1787:1: start of procedure do_multi()
1785.   
1786.   #ifdef HAVE_FORK
1787. > static int do_multi(int multi)
1788.   	{
1789.   	int n;

apps/speed.c:1792:2: 
1790.   	int fd[2];
1791.   	int *fds;
1792. > 	static char sep[]=":";
1793.   
1794.   	fds=malloc(multi*sizeof *fds);

apps/speed.c:1794:2: 
1792.   	static char sep[]=":";
1793.   
1794. > 	fds=malloc(multi*sizeof *fds);
1795.   	for(n=0 ; n < multi ; ++n)
1796.   		{

apps/speed.c:1795:6: 
1793.   
1794.   	fds=malloc(multi*sizeof *fds);
1795. > 	for(n=0 ; n < multi ; ++n)
1796.   		{
1797.   		pipe(fd);

apps/speed.c:1795:12: Loop condition is true. Entering loop body
1793.   
1794.   	fds=malloc(multi*sizeof *fds);
1795.   	for(n=0 ; n < multi ; ++n)
                   ^
1796.   		{
1797.   		pipe(fd);

apps/speed.c:1797:3: 
1795.   	for(n=0 ; n < multi ; ++n)
1796.   		{
1797. > 		pipe(fd);
1798.   		if(fork())
1799.   			{

apps/speed.c:1798:6: Taking false branch
1796.   		{
1797.   		pipe(fd);
1798.   		if(fork())
             ^
1799.   			{
1800.   			close(fd[1]);

apps/speed.c:1805:4: 
1803.   		else
1804.   			{
1805. > 			close(fd[0]);
1806.   			close(1);
1807.   			dup(fd[1]);
