[libvirt] [PATCH] qemu: Fix one memory leak

Osier Yang jyang at redhat.com
Wed Jun 22 10:20:47 UTC 2011


* src/qemu/qemu_domain.c: (qemuDomainAppendLog)

Free "message" in "cleanup".
---
 src/qemu/qemu_domain.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c
index 5fe66ac..fab316f 100644
--- a/src/qemu/qemu_domain.c
+++ b/src/qemu/qemu_domain.c
@@ -947,5 +947,6 @@ cleanup:
     if (fd != logFD)
         VIR_FORCE_CLOSE(fd);
 
+    VIR_FREE(message);
     return ret;
 }
-- 
1.7.4




More information about the libvir-list mailing list