mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
mincore_resid: free buf after use
MFC after: 3 days Reported by: Coverity CID: 978304
This commit is contained in:
parent
83e8b13f15
commit
b5bbd2a17c
1 changed files with 3 additions and 0 deletions
|
|
@ -279,6 +279,9 @@ ATF_TC_BODY(mincore_resid, tc)
|
|||
(void)munmap(addr2, npgs * page);
|
||||
(void)munmap(addr3, npgs * page);
|
||||
(void)unlink(path);
|
||||
#ifdef __FreeBSD__
|
||||
free(buf);
|
||||
#endif
|
||||
}
|
||||
|
||||
ATF_TC_CLEANUP(mincore_resid, tc)
|
||||
|
|
|
|||
Loading…
Reference in a new issue