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)
This commit is contained in:
Peter Krempa 2013-07-16 15:39:06 +02:00 committed by Eric Blake
parent a0f8c42b93
commit cafcec2f5b

View File

@ -1538,7 +1538,6 @@ qemuAgentGetVCPUs(qemuAgentPtr mon,
cleanup:
virJSONValueFree(cmd);
virJSONValueFree(reply);
virJSONValueFree(data);
return ret;
}