projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d324b0
)
qjson: free str
author
Marc-André Lureau
<marcandre.lureau@redhat.com>
Fri, 15 Jul 2016 08:41:03 +0000
(10:41 +0200)
committer
Marc-André Lureau
<marcandre.lureau@redhat.com>
Sun, 7 Aug 2016 20:00:24 +0000
(
00:00
+0400)
Release the qstring allocated in qjson_new().
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
migration/qjson.c
patch
|
blob
|
history
diff --git
a/migration/qjson.c
b/migration/qjson.c
index 5cae55af0775855a9c543778b52001e36a96a35a..f3459049191d5015b52e49e064793a72f8b12efa 100644
(file)
--- 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);
}