43fe83
From 6fe13c7752108ab069441129901249a792aa62f4 Mon Sep 17 00:00:00 2001
43fe83
Message-Id: <6fe13c7752108ab069441129901249a792aa62f4.1377873639.git.jdenemar@redhat.com>
43fe83
From: Peter Krempa <pkrempa@redhat.com>
43fe83
Date: Fri, 16 Aug 2013 10:44:51 +0200
43fe83
Subject: [PATCH] virsh-domain: Fix memleak in cmdCPUBaseline
43fe83
43fe83
https://bugzilla.redhat.com/show_bug.cgi?id=997798 [7.0]
43fe83
https://bugzilla.redhat.com/show_bug.cgi?id=997765 [6.6]
43fe83
43fe83
==1349431== 8 bytes in 1 blocks are definitely lost in loss record 11 of 760
43fe83
==1349431==    at 0x4C2A554: calloc (vg_replace_malloc.c:593)
43fe83
==1349431==    by 0x4E9AA3E: virAllocN (in /usr/lib64/libvirt.so.0.1001.1)
43fe83
==1349431==    by 0x4EF28C4: virXPathNodeSet (in /usr/lib64/libvirt.so.0.1001.1)
43fe83
==1349431==    by 0x130B83: cmdCPUBaseline (in /usr/bin/virsh)
43fe83
==1349431==    by 0x12C608: vshCommandRun (in /usr/bin/virsh)
43fe83
==1349431==    by 0x12889A: main (in /usr/bin/virsh)
43fe83
43fe83
(cherry picked from commit f4ec8616410cea2b7dbe4c535c81cf70162a2939)
43fe83
---
43fe83
 tools/virsh-domain.c | 1 +
43fe83
 1 file changed, 1 insertion(+)
43fe83
43fe83
diff --git a/tools/virsh-domain.c b/tools/virsh-domain.c
43fe83
index 31db8fe..2134e57 100644
43fe83
--- a/tools/virsh-domain.c
43fe83
+++ b/tools/virsh-domain.c
43fe83
@@ -6228,6 +6228,7 @@ cleanup:
43fe83
     }
43fe83
     VIR_FREE(list);
43fe83
     VIR_FREE(buffer);
43fe83
+    VIR_FREE(node_list);
43fe83
 
43fe83
     return ret;
43fe83
 
43fe83
-- 
43fe83
1.8.3.2
43fe83