mincore_resid: free buf after use
MFC after: 3 days Reported by: Coverity CID: 978304
This commit is contained in:
parent
83e8b13f15
commit
b5bbd2a17c
@ -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 New Issue
Block a user