svn commit: r311624 - stable/11/contrib/netbsd-tests/lib/libc/sys
Ngie Cooper
ngie at FreeBSD.org
Sat Jan 7 09:36:29 UTC 2017
Author: ngie
Date: Sat Jan 7 09:36:27 2017
New Revision: 311624
URL: https://svnweb.freebsd.org/changeset/base/311624
Log:
MFC r311273:
setrlimit_basic: don't leak buf; free it on completion
CID: 978311
Modified:
stable/11/contrib/netbsd-tests/lib/libc/sys/t_setrlimit.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/contrib/netbsd-tests/lib/libc/sys/t_setrlimit.c
==============================================================================
--- stable/11/contrib/netbsd-tests/lib/libc/sys/t_setrlimit.c Sat Jan 7 09:33:11 2017 (r311623)
+++ stable/11/contrib/netbsd-tests/lib/libc/sys/t_setrlimit.c Sat Jan 7 09:36:27 2017 (r311624)
@@ -124,6 +124,9 @@ out:
if (lim != 0)
atf_tc_fail("failed to set limit (%d)", lim);
+#ifdef __FreeBSD__
+ free(buf);
+#endif
}
ATF_TC(setrlimit_current);
More information about the svn-src-stable-11
mailing list