From c82cbf1d4818500b3a203c4b496ccb01b88ffef3 Mon Sep 17 00:00:00 2001 From: Stefan Berger Date: Tue, 29 May 2012 06:25:59 -0400 Subject: [PATCH] leak_fix.diff ==3240== 23 bytes in 1 blocks are definitely lost in loss record 242 of 744 ==3240== at 0x4C2A4CD: malloc (vg_replace_malloc.c:236) ==3240== by 0x8077537: __vasprintf_chk (vasprintf_chk.c:82) ==3240== by 0x509C677: virVasprintf (stdio2.h:199) ==3240== by 0x509C733: virAsprintf (util.c:1912) ==3240== by 0x1906583A: qemudStartup (qemu_driver.c:679) ==3240== by 0x511991D: virStateInitialize (libvirt.c:809) ==3240== by 0x40CD84: daemonRunStateInit (libvirtd.c:751) ==3240== by 0x5098745: virThreadHelper (threads-pthread.c:161) ==3240== by 0x7953D8F: start_thread (pthread_create.c:309) ==3240== by 0x805FF5C: clone (clone.S:115) (cherry picked from commit 67dd486f20d4028ebf723735565697146207d301) --- src/qemu/qemu_driver.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index 093f824392..d96040a819 100644 --- a/src/qemu/qemu_driver.c +++ b/src/qemu/qemu_driver.c @@ -683,6 +683,7 @@ qemudStartup(int privileged) { goto error; } } + VIR_FREE(membase); qemu_driver->hugepage_path = mempath; }