summaryrefslogtreecommitdiff
path: root/target-unicore32
diff options
context:
space:
mode:
authorMichael Roth <mdroth@linux.vnet.ibm.com>2013-05-09 21:20:57 -0500
committerLuiz Capitulino <lcapitulino@redhat.com>2013-05-15 08:58:43 -0400
commitad7f375df681503baa6ebef065818868e1216976 (patch)
treefe392cef24ff02f64466478132db621ec111659e /target-unicore32
parent74bc9066bc2cf61dd12994ea3b73401d33112656 (diff)
downloadqemu-ad7f375df681503baa6ebef065818868e1216976.tar.gz
qapi: fix leak in unit tests
qmp_output_get_qobject() increments the qobject's reference count. Since we currently pass this straight into qobject_to_json() so we can feed the data into a QMP input visitor, we never actually free the underlying qobject when qmp_output_visitor_cleanup() is called. This causes leaks on all of the QMP serialization tests. Fix this by holding a pointer to the qobject and decref'ing it before returning from qmp_deserialize(). Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'target-unicore32')
0 files changed, 0 insertions, 0 deletions