qemu: Fix double free of returned JSON array in qemuAgentGetVCPUs() CVE-2013-4153
authorPeter Krempa <pkrempa@redhat.com>
Tue, 16 Jul 2013 13:39:06 +0000 (15:39 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 16 Jul 2013 14:51:36 +0000 (16:51 +0200)
commitdfc692350a04a70b4ca65667c30869b3bfdaf034
treefb3031e7eb45b1fb9455d5bf8afcdd18a38c0d06
parentd58c8478443d49c6e702bbb2c56a567ef23f036f
qemu: Fix double free of returned JSON array in qemuAgentGetVCPUs()

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
src/qemu/qemu_agent.c