aboutsummaryrefslogtreecommitdiff
path: root/qapi-schema-test.json
diff options
context:
space:
mode:
authorLaszlo Ersek <lersek@redhat.com>2012-03-20 11:22:48 +0100
committerLuiz Capitulino <lcapitulino@redhat.com>2012-03-27 09:11:00 -0300
commitf24582d6ad8a080e008974c000bf0ae635d036ac (patch)
tree8724e20f9af9e8c9e6c8e3e90b2e94fb30a51d98 /qapi-schema-test.json
parent8a22565b7c2d1920b02b94e7a8021c65895a3a22 (diff)
qapi: fix double free in qmp_output_visitor_cleanup()
Stack entries in QmpOutputVisitor are navigation links (weak references), except the bottom (ie. least recently added) entry, which owns the root QObject [1]. Make qmp_output_visitor_cleanup() drop the stack entries, then release the QObject tree by the root. Attempting to serialize an invalid enum inside a dictionary is an example for triggering the double free. [1] http://lists.nongnu.org/archive/html/qemu-devel/2012-03/msg03276.html Signed-off-by: Laszlo Ersek <lersek@redhat.com> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'qapi-schema-test.json')
0 files changed, 0 insertions, 0 deletions