mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-23 21:15:20 +00:00
Don't leak delay string when freeing virInterfaceBridgeDefs
This commit is contained in:
parent
7c5f80e2f0
commit
6328dfcb67
@ -84,6 +84,7 @@ void virInterfaceDefFree(virInterfaceDefPtr def)
|
||||
|
||||
switch (def->type) {
|
||||
case VIR_INTERFACE_TYPE_BRIDGE:
|
||||
VIR_FREE(def->data.bridge.delay);
|
||||
for (i = 0;i < def->data.bridge.nbItf;i++) {
|
||||
if (def->data.bridge.itf[i] == NULL)
|
||||
break; /* to cope with half parsed data on errors */
|
||||
|
Loading…
x
Reference in New Issue
Block a user