setrlimit_basic: don't leak buf; free it on completion
MFC after: 3 days Reported by: Coverity CID: 978311
This commit is contained in:
parent
616267f093
commit
ac7c638e4b
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user