A user reported kvm_nlist(3) leaks memory. I found there are two leaks. First, it had to free(3) dpcpu_off (introduced in rS204494) from kvm_close(3). Second, it is not free()'ing temporary buffer introduced in D3341 (rS291406). Also, an unchecked calloc(3) failure was fixed while I am in the neighborhood.
Details
Details
- Reviewers
jhb rwatson - Commits
- rG859105d755ce: libkvm: Plug couple of memory leaks and check possible calloc(3) failure
rGeda8f0575dda: libkvm: Plug couple of memory leaks and check possible calloc(3) failure
rG24ee1eb2b680: libkvm: Plug couple of memory leaks and check possible calloc(3) failure
rG645eaa2ccaed: libkvm: Plug couple of memory leaks and check possible calloc(3) failure
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable