mirror of https://gitee.com/openkylin/libvirt.git
conf: Don't leak the virtual port profile in virNetworkDefFree
Reported by Alex Jia.
This commit is contained in:
parent
a8be259d0c
commit
49b8d51edc
|
@ -169,6 +169,8 @@ void virNetworkDefFree(virNetworkDefPtr def)
|
|||
|
||||
virNetworkDNSDefFree(def->dns);
|
||||
|
||||
VIR_FREE(def->virtPortProfile);
|
||||
|
||||
virBandwidthDefFree(def->bandwidth);
|
||||
|
||||
VIR_FREE(def);
|
||||
|
|
Loading…
Reference in New Issue