]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
Don't leak delay string when freeing virInterfaceBridgeDefs
authorLaine Stump <laine@laine.org>
Tue, 3 Aug 2010 14:31:59 +0000 (10:31 -0400)
committerLaine Stump <laine@laine.org>
Tue, 3 Aug 2010 15:37:05 +0000 (11:37 -0400)
src/conf/interface_conf.c

index 6430f7a21b34f2435a65cc11101fc1c372b88b68..b24526fc2126b987920b46c613f0c9a52ec74fc7 100644 (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 */