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

[libvirt] [PATCH] qemud/qemud.c (qemudCleanup): Plug a leak.



Hi Dan,

With your patches, "make check" hits one new leak:

    40 bytes in 1 blocks are definitely lost in loss record 9 of 65
       at 0x4A05174: calloc (vg_replace_malloc.c:397)
       by 0x447F29: virAllocN (memory.c:128)
       by 0x40CD82: qemudRunLoop (qemud.c:1839)
       by 0x40E713: main (qemud.c:2462)

This fixes it:

>From 9230c41d3deb00b4a0bb6800126e5cd41a350a54 Mon Sep 17 00:00:00 2001
From: Jim Meyering <meyering redhat com>
Date: Mon, 1 Dec 2008 15:07:40 +0100
Subject: [PATCH] * qemud/qemud.c (qemudCleanup): Plug a leak.

---
 qemud/qemud.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/qemud/qemud.c b/qemud/qemud.c
index 94f5918..8518bd5 100644
--- a/qemud/qemud.c
+++ b/qemud/qemud.c
@@ -1942,6 +1942,7 @@ static void qemudCleanup(struct qemud_server *server) {

     virStateCleanup();

+    VIR_FREE(server->workers);
     free(server);
 }

--
1.6.0.4.1044.g77718


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