The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=af3b48e101986fb0840739f8c4bb3195e78008b1
commit af3b48e101986fb0840739f8c4bb3195e78008b1 Author: John Baldwin <j...@freebsd.org> AuthorDate: 2022-12-09 18:27:05 +0000 Commit: John Baldwin <j...@freebsd.org> CommitDate: 2022-12-09 18:27:05 +0000 vmm: Free vCPUs when destroying them. Reported by: andrew Reviewed by: corvink, andrew, markj Differential Revision: https://reviews.freebsd.org/D37649 --- sys/amd64/vmm/vmm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/amd64/vmm/vmm.c b/sys/amd64/vmm/vmm.c index 7e8a5c939440..169109e8df6e 100644 --- a/sys/amd64/vmm/vmm.c +++ b/sys/amd64/vmm/vmm.c @@ -341,6 +341,7 @@ vcpu_cleanup(struct vcpu *vcpu, bool destroy) vmm_stat_free(vcpu->stats); fpu_save_area_free(vcpu->guestfpu); vcpu_lock_destroy(vcpu); + free(vcpu, M_VM); } }