svn commit: r311625 - stable/10/contrib/netbsd-tests/lib/libc/sys
Ngie Cooper
ngie at FreeBSD.org
Sat Jan 7 09:37:33 UTC 2017
Author: ngie
Date: Sat Jan 7 09:37:32 2017
New Revision: 311625
URL: https://svnweb.freebsd.org/changeset/base/311625
Log:
MFC r311273:
setrlimit_basic: don't leak buf; free it on completion
CID: 978311
Modified:
stable/10/contrib/netbsd-tests/lib/libc/sys/t_setrlimit.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/contrib/netbsd-tests/lib/libc/sys/t_setrlimit.c
==============================================================================
--- stable/10/contrib/netbsd-tests/lib/libc/sys/t_setrlimit.c Sat Jan 7 09:36:27 2017 (r311624)
+++ stable/10/contrib/netbsd-tests/lib/libc/sys/t_setrlimit.c Sat Jan 7 09:37:32 2017 (r311625)
@@ -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-all
mailing list