qemu: Fix double free of returned JSON array in qemuAgentGetVCPUs()
authorPeter Krempa <pkrempa@redhat.com>
Tue, 16 Jul 2013 13:39:06 +0000 (15:39 +0200)
committerEric Blake <eblake@redhat.com>
Fri, 19 Jul 2013 18:55:29 +0000 (12:55 -0600)
commitcafcec2f5b0c9ff1dc573d798933ae453a15fa29
tree7279fbc5f46e299e28240593b2a5ecc1c4763778
parenta0f8c42b936c44c7e328ce774a8952dcc2f6afc6
qemu: Fix double free of returned JSON array in qemuAgentGetVCPUs()

CVE-2013-4153

A part of the returned monitor response was freed twice and caused
crashes of the daemon when using guest agent cpu count retrieval.

 # virsh vcpucount dom --guest

Introduced in v1.0.6-48-gc6afcb0

(cherry picked from commit dfc692350a04a70b4ca65667c30869b3bfdaf034)
src/qemu/qemu_agent.c