mincore_resid: free buf after use

MFC after:	3 days
Reported by:	Coverity
CID:		978304
This commit is contained in:
Enji Cooper 2017-01-04 04:55:33 +00:00
parent 83e8b13f15
commit b5bbd2a17c

View File

@ -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)