aboutsummaryrefslogtreecommitdiff
path: root/migration/qjson.c
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2016-07-15 10:41:03 +0200
committerMarc-André Lureau <marcandre.lureau@redhat.com>2016-08-08 00:00:24 +0400
commitdf37dd6ffe49dc0da919c5034fb89e1f85e3c98f (patch)
tree60c04a69a226d191a79a9a0448720ce14b3c0507 /migration/qjson.c
parent9d324b0e67c2b570df389c1361f591b95a4e4278 (diff)
downloadqemu-df37dd6ffe49dc0da919c5034fb89e1f85e3c98f.zip
qemu-df37dd6ffe49dc0da919c5034fb89e1f85e3c98f.tar.gz
qemu-df37dd6ffe49dc0da919c5034fb89e1f85e3c98f.tar.bz2
qjson: free str
Release the qstring allocated in qjson_new(). Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com>
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 5cae55a..f345904 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);
}