NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bin/51858: [PATCH] tests/lib/libc/sys/t_pipe: don't leak buf



The following reply was made to PR bin/51858; it has been noted by GNATS.

From: "Ngie Cooper (yaneurabeya)" <yaneurabeya%gmail.com@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: bin/51858: [PATCH] tests/lib/libc/sys/t_pipe: don't leak buf
Date: Thu, 12 Jan 2017 23:03:36 -0800

 --Apple-Mail=_A2870BFF-5EE6-4C4D-B745-DEE27345C574
 Content-Disposition: attachment;
 	filename=t_pipe-dont-leak-buf.patch
 Content-Type: application/octet-stream;
 	x-unix-mode=0644;
 	name="t_pipe-dont-leak-buf.patch"
 Content-Transfer-Encoding: 7bit
 
 Index: lib/libc/sys/t_pipe.c
 ===================================================================
 RCS file: /cvsroot/src/tests/lib/libc/sys/t_pipe.c,v
 retrieving revision 1.3
 diff -u -r1.3 t_pipe.c
 --- lib/libc/sys/t_pipe.c	31 Oct 2011 15:41:31 -0000	1.3
 +++ lib/libc/sys/t_pipe.c	13 Jan 2017 06:49:35 -0000
 @@ -153,6 +153,7 @@
  
  		ATF_REQUIRE_EQ(WEXITSTATUS(st), 0);
  	}
 +	free(f);
  }
  
  ATF_TP_ADD_TCS(tp)
 
 --Apple-Mail=_A2870BFF-5EE6-4C4D-B745-DEE27345C574--
 


Home | Main Index | Thread Index | Old Index