qemu-e2k/tests
Michael Roth ad7f375df6 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>
2013-05-15 08:58:43 -04:00
..
libqos libqos/pci: Enable bus mastering 2013-05-08 15:28:49 +02:00
qemu-iotests qemu-iotests: fix 017 018 for vmdk 2013-05-08 15:28:50 +02:00
tcg target-mips: fix incorrect behaviour for INSV 2013-05-08 18:46:38 +02:00
.gitignore Add some missing qtest binaries to .gitignore 2013-02-21 10:33:54 +01:00
check-block.sh
check-qdict.c
check-qfloat.c
check-qint.c
check-qjson.c qjson: to_json() case QTYPE_QSTRING is buggy, rewrite 2013-04-13 19:40:25 +00:00
check-qlist.c
check-qstring.c
fdc-test.c
fw_cfg-test.c fw_cfg: add qtest test case 2013-04-17 10:27:47 -05:00
hd-geo-test.c
i440fx-test.c i440fx-test: add test for PAM functionality 2013-04-17 10:27:47 -05:00
ide-test.c qtest/ide-test: Test short and long PRDTs 2013-05-08 15:28:49 +02:00
libqtest.c libqtest: only call fclose() on open files 2013-04-30 16:04:14 -05:00
libqtest.h qtest: Add MMIO support 2013-02-18 08:39:10 -06:00
m48t59-test.c qtest: Add MMIO support 2013-02-18 08:39:10 -06:00
Makefile qtest: Add IDE test case 2013-05-08 15:28:49 +02:00
qemu-iotests-quick.sh
rtc-test.c hw: move headers to include/ 2013-04-08 18:13:10 +02:00
test-aio.c
test-coroutine.c coroutine: trim down nesting level in perf_nesting test 2013-02-22 21:21:10 +01:00
test-cutils.c
test-hbitmap.c
test-iov.c
test-mul64.c
test-qmp-commands.c
test-qmp-input-strict.c
test-qmp-input-visitor.c
test-qmp-output-visitor.c
test-string-input-visitor.c
test-string-output-visitor.c
test-thread-pool.c threadpool: drop global thread pool 2013-03-15 16:07:51 +01:00
test-visitor-serialization.c qapi: fix leak in unit tests 2013-05-15 08:58:43 -04:00
test-x86-cpuid.c
test-xbzrle.c
tmp105-test.c libqos: Relocate I2C files 2013-05-03 12:03:14 -05:00