mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 03:12:22 +00:00
vbox_tmpl.c: avoid an unconditional leak
* src/vbox/vbox_tmpl.c (vboxDomainDumpXML): Free def. Improved by Matthias Bolte.
This commit is contained in:
parent
55e642e586
commit
4a3d1ca3f1
@ -6183,6 +6183,7 @@ static char *vboxNetworkDumpXML(virNetworkPtr network, int flags ATTRIBUTE_UNUSE
|
||||
ret = virNetworkDefFormat(def);
|
||||
|
||||
cleanup:
|
||||
virNetworkDefFree(def);
|
||||
VIR_FREE(networkNameUtf8);
|
||||
return ret;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user