]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
network_conf: Resolve Coverity RESOURCE_LEAK
authorJohn Ferlan <jferlan@redhat.com>
Wed, 27 Aug 2014 18:57:53 +0000 (14:57 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Thu, 28 Aug 2014 12:12:16 +0000 (08:12 -0400)
Need to VIR_FREE the startip/endip we allocated for the error message

src/conf/network_conf.c

index dc25c6ead6b0bf8d8160d1686cfa9e15c81f7a6f..9571ee1c581bb0c3acb3227bedcd4ba96e2d80cc 100644 (file)
@@ -3627,6 +3627,8 @@ virNetworkDefUpdateIPDHCPRange(virNetworkDefPtr def,
                            def->name,
                            startip ? startip : "unknown",
                            endip ? endip : "unknown");
+            VIR_FREE(startip);
+            VIR_FREE(endip);
             goto cleanup;
         }