The branch stable/13 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=c44d097dcf9293385441309c3e7a4b991cf43422
commit c44d097dcf9293385441309c3e7a4b991cf43422 Author: John Baldwin <[email protected]> AuthorDate: 2022-12-09 18:27:05 +0000 Commit: John Baldwin <[email protected]> CommitDate: 2023-01-26 22:07:38 +0000 vmm: Free vCPUs when destroying them. Reported by: andrew Reviewed by: corvink, andrew, markj Differential Revision: https://reviews.freebsd.org/D37649 (cherry picked from commit af3b48e101986fb0840739f8c4bb3195e78008b1) --- 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 530c90c9804d..f0ee159dcbb9 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); } }
