setrlimit_basic: don't leak buf; free it on completion

MFC after:	3 days
Reported by:	Coverity
CID:		978311
This commit is contained in:
ngie 2017-01-04 09:00:16 +00:00
parent 616267f093
commit ac7c638e4b

View File

@ -129,6 +129,9 @@ out:
if (lim != 0)
atf_tc_fail("failed to set limit (%d)", lim);
#ifdef __FreeBSD__
free(buf);
#endif
}
ATF_TC(setrlimit_current);