b159bb
From dfc692350a04a70b4ca65667c30869b3bfdaf034 Mon Sep 17 00:00:00 2001
b159bb
Message-Id: <dfc692350a04a70b4ca65667c30869b3bfdaf034.1374788346.git.crobinso@redhat.com>
b159bb
From: Peter Krempa <pkrempa@redhat.com>
b159bb
Date: Tue, 16 Jul 2013 15:39:06 +0200
b159bb
Subject: [PATCH] qemu: Fix double free of returned JSON array in
b159bb
 qemuAgentGetVCPUs()
b159bb
b159bb
A part of the returned monitor response was freed twice and caused
b159bb
crashes of the daemon when using guest agent cpu count retrieval.
b159bb
b159bb
 # virsh vcpucount dom --guest
b159bb
b159bb
Introduced in v1.0.6-48-gc6afcb0
b159bb
---
b159bb
 src/qemu/qemu_agent.c | 1 -
b159bb
 1 file changed, 1 deletion(-)
b159bb
b159bb
diff --git a/src/qemu/qemu_agent.c b/src/qemu/qemu_agent.c
b159bb
index aca5ff3..72bf211 100644
b159bb
--- a/src/qemu/qemu_agent.c
b159bb
+++ b/src/qemu/qemu_agent.c
b159bb
@@ -1529,7 +1529,6 @@ qemuAgentGetVCPUs(qemuAgentPtr mon,
b159bb
 cleanup:
b159bb
     virJSONValueFree(cmd);
b159bb
     virJSONValueFree(reply);
b159bb
-    virJSONValueFree(data);
b159bb
     return ret;
b159bb
 }
b159bb
 
b159bb
-- 
b159bb
1.8.3.1
b159bb