summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ferlan <jferlan@redhat.com>2014-08-27 14:57:53 -0400
committerJohn Ferlan <jferlan@redhat.com>2014-08-28 08:12:16 -0400
commit0cec79b91bf07a8cb18460f74753c05759ee6058 (patch)
tree7c7c03a7bb6f5b9ed59ae85b488ad5d4782ab511
parent2f7ced36e625fb59a83f2522963e846f9775b8cb (diff)
downloadlibvirt-0cec79b91bf07a8cb18460f74753c05759ee6058.tar.gz
network_conf: Resolve Coverity RESOURCE_LEAK
Need to VIR_FREE the startip/endip we allocated for the error message
-rw-r--r--src/conf/network_conf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/conf/network_conf.c b/src/conf/network_conf.c
index dc25c6ead6..9571ee1c58 100644
--- a/src/conf/network_conf.c
+++ b/src/conf/network_conf.c
@@ -3627,6 +3627,8 @@ virNetworkDefUpdateIPDHCPRange(virNetworkDefPtr def,
def->name,
startip ? startip : "unknown",
endip ? endip : "unknown");
+ VIR_FREE(startip);
+ VIR_FREE(endip);
goto cleanup;
}