summaryrefslogtreecommitdiffstats
path: root/migration/qjson.c
diff options
context:
space:
mode:
authorPeter Maydell2016-08-08 13:41:38 +0200
committerPeter Maydell2016-08-08 13:41:38 +0200
commit9efaf7f5f5729f7fa8dcf413fabe3d46ad382f90 (patch)
treedeb4bd2faa2a2707c11a2f6458d19d8d46269896 /migration/qjson.c
parentMerge remote-tracking branch 'remotes/dgibson/tags/ppc-for-2.7-20160808' into... (diff)
parentahci: fix sglist leak on retry (diff)
downloadqemu-9efaf7f5f5729f7fa8dcf413fabe3d46ad382f90.tar.gz
qemu-9efaf7f5f5729f7fa8dcf413fabe3d46ad382f90.tar.xz
qemu-9efaf7f5f5729f7fa8dcf413fabe3d46ad382f90.zip
Merge remote-tracking branch 'remotes/elmarco/tags/leaks-for-2.7-pull-request' into staging
# gpg: Signature made Sun 07 Aug 2016 21:03:14 BST # gpg: using RSA key 0xDAE8E10975969CE5 # gpg: Good signature from "Marc-André Lureau <marcandre.lureau@redhat.com>" # gpg: aka "Marc-André Lureau <marcandre.lureau@gmail.com>" # gpg: WARNING: This key is not certified with sufficiently trusted signatures! # gpg: It is not certain that the signature belongs to the owner. # Primary key fingerprint: 87A9 BD93 3F87 C606 D276 F62D DAE8 E109 7596 9CE5 * remotes/elmarco/tags/leaks-for-2.7-pull-request: ahci: fix sglist leak on retry usb: free leaking path usb: free USBDevice.strings virtio-input: free config list qjson: free str ahci: free irqs array char: free MuxDriver when closing char: free the tcp connection data when closing numa: do not leak NumaOptions Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'migration/qjson.c')
-rw-r--r--migration/qjson.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/migration/qjson.c b/migration/qjson.c
index 5cae55af07..f345904919 100644
--- a/migration/qjson.c
+++ b/migration/qjson.c
@@ -109,5 +109,6 @@ void qjson_finish(QJSON *json)
void qjson_destroy(QJSON *json)
{
+ QDECREF(json->str);
g_free(json);
}