mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 03:12:22 +00:00
conf: fix vsock memory leaks
Introduced by: commit d4abb7b45d48aba77c2464dbea95f02a43a60834 conf: introduce <vsock> element commit b8b42ca036adbfaac1741c8efe389cd1403e220b qemu: add support for vhost-vsock-pci Signed-off-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
d9fcb4cfa1
commit
f8466296e4
@ -2062,6 +2062,7 @@ virDomainVsockDefFree(virDomainVsockDefPtr vsock)
|
||||
return;
|
||||
|
||||
virObjectUnref(vsock->privateData);
|
||||
virDomainDeviceInfoClear(&vsock->info);
|
||||
VIR_FREE(vsock);
|
||||
}
|
||||
|
||||
@ -3092,6 +3093,7 @@ void virDomainDefFree(virDomainDefPtr def)
|
||||
|
||||
virDomainMemballoonDefFree(def->memballoon);
|
||||
virDomainNVRAMDefFree(def->nvram);
|
||||
virDomainVsockDefFree(def->vsock);
|
||||
|
||||
for (i = 0; i < def->mem.nhugepages; i++)
|
||||
virBitmapFree(def->mem.hugepages[i].nodemask);
|
||||
|
Loading…
x
Reference in New Issue
Block a user