mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-15 01:43:40 -06: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) {
|
switch (def->type) {
|
||||||
case VIR_INTERFACE_TYPE_BRIDGE:
|
case VIR_INTERFACE_TYPE_BRIDGE:
|
||||||
|
VIR_FREE(def->data.bridge.delay);
|
||||||
for (i = 0;i < def->data.bridge.nbItf;i++) {
|
for (i = 0;i < def->data.bridge.nbItf;i++) {
|
||||||
if (def->data.bridge.itf[i] == NULL)
|
if (def->data.bridge.itf[i] == NULL)
|
||||||
break; /* to cope with half parsed data on errors */
|
break; /* to cope with half parsed data on errors */
|
||||||
|
Loading…
Reference in New Issue
Block a user