Don't leak delay string when freeing virInterfaceBridgeDefs

This commit is contained in:
Laine Stump 2010-08-03 10:31:59 -04:00
parent 7c5f80e2f0
commit 6328dfcb67

View File

@ -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 */