]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
interface: Resolve resource leak wth 'tmp_iface_objs'
authorJohn Ferlan <jferlan@redhat.com>
Wed, 9 Jan 2013 14:54:16 +0000 (09:54 -0500)
committerJán Tomko <jtomko@redhat.com>
Tue, 15 Jan 2013 13:50:27 +0000 (14:50 +0100)
src/interface/interface_backend_netcf.c

index 35335c2b8708e73271b8856c4dd2273524b3d3f4..86717177557170c1df800d23797a08da1a4d5ec1 100644 (file)
@@ -399,6 +399,7 @@ cleanup:
             if (tmp_iface_objs[i])
                 virInterfaceFree(tmp_iface_objs[i]);
         }
+        VIR_FREE(tmp_iface_objs);
     }
 
     interfaceDriverUnlock(driver);