K 10 svn:author V 4 jkim K 8 svn:date V 27 2021-03-06T20:06:27.204375Z K 7 svn:log V 649 libkvm: Plug couple of memory leaks and check possible calloc(3) failure First, r204494 introduced dpcpu_off in struct __kvm and it was allocated from _kvm_dpcpu_init() but it was not free(3)'ed from kvm_close(3). Second, r291406 introduced kvm_nlist2(3) and converted kvm_nlist(3) to use the new function but it did not free the temporary buffer. Also, check possible calloc(3) failure while I am in the neighborhood. MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D29019 (cherry picked from commit 645eaa2ccaed6eea801d07d6a092974fc1713896) Git Hash: 859105d755ce0ead5ab356c67a6234b10650477f Git Author: jkim@FreeBSD.org END