mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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
fcc9604d43
commit
dca7cc9815
1 changed files with 3 additions and 0 deletions
|
|
@ -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…
Reference in a new issue