Re: [PATCH] conf: Fix memory leak in virNetworkDNSDefFormat

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



于 2011年06月28日 18:06, Michal Privoznik 写道:
On 28.06.2011 10:06, Osier Yang wrote:
---
  src/conf/network_conf.c |    1 +
  1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/conf/network_conf.c b/src/conf/network_conf.c
index d0860d8..45ddee2 100644
--- a/src/conf/network_conf.c
+++ b/src/conf/network_conf.c
@@ -945,6 +945,7 @@ virNetworkDNSDefFormat(virBufferPtr buf,
                                                 def->hosts[ii].names[j]);

              virBufferAsprintf(buf, "</host>\n");
+            VIR_FREE(ip);
          }
      }

ACK.

Michal

Applied, thanks

Osier

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]