File 57e681e5-domain_conf-resolve-Coverity-RESOURCE_LEAK.patch of Package libvirt.11695

From 57e681e529103c90ed4699cb9ba625bd109d2ef3 Mon Sep 17 00:00:00 2001
From: John Ferlan <jferlan@redhat.com>
Date: Fri, 9 Jan 2015 11:02:04 -0500
Subject: [PATCH 6/7] domain_conf: Resolve Coverity RESOURCE_LEAK

Commit id 'aa2cc721' added call to virSocketAddrFormat
and did not VIR_FREE() the returned memory.

Signed-off-by: John Ferlan <jferlan@redhat.com>
---
 src/conf/domain_conf.c | 1 +
 1 file changed, 1 insertion(+)

Index: libvirt-1.2.5/src/conf/domain_conf.c
===================================================================
--- libvirt-1.2.5.orig/src/conf/domain_conf.c
+++ libvirt-1.2.5/src/conf/domain_conf.c
@@ -15722,6 +15722,7 @@ virDomainNetIpsFormat(virBufferPtr buf,
             familyStr = "ipv4";
         virBufferAsprintf(buf, "<ip address='%s'",
                           ipStr);
+        VIR_FREE(ipStr);
         if (familyStr)
             virBufferAsprintf(buf, " family='%s'", familyStr);
         if (ips[i]->prefix != 0)