Free vm_info_result in error paths.
authordv <dv@openbsd.org>
Sun, 10 Apr 2022 19:36:58 +0000 (19:36 +0000)
committerdv <dv@openbsd.org>
Sun, 10 Apr 2022 19:36:58 +0000 (19:36 +0000)
commited010ab236dbe222811a41dc421aae6e59864e99
tree0d98e79753ab341ba9b7a1f15c01d0f768b8cce0
parent4f66a5c6daca387dace66f04640986a30793013f
Free vm_info_result in error paths.

vmd(8)'s get_info_vm() mallocs vm_info_result structs when using
the VMM_IOC_INFO ioctl. The error paths failed to free the resulting
objects.

Diff adapted from suggestions by jca@. ok mlarkin@.
usr.sbin/vmd/vmm.c