]> xenbits.xensource.com Git - libvirt.git/commitdiff
Fix virInterfaceIpDefPtr leak during virInterfaceIpDefFree
authorLaine Stump <laine@laine.org>
Tue, 3 Nov 2009 19:02:52 +0000 (20:02 +0100)
committerDaniel Veillard <veillard@redhat.com>
Tue, 3 Nov 2009 20:04:56 +0000 (21:04 +0100)
* src/conf/interface_conf.c: forgot to free the structure itself

src/conf/interface_conf.c

index 7cb71edc9f98c10a90de86c73a1a54748a530295..dafce14df4e294bb2bdbeae8d8ea8a1581720aa6 100644 (file)
@@ -58,6 +58,7 @@ void virInterfaceIpDefFree(virInterfaceIpDefPtr def) {
     if (def == NULL)
         return;
     VIR_FREE(def->address);
+    VIR_FREE(def);
 }
 
 static