From df37dd6ffe49dc0da919c5034fb89e1f85e3c98f Mon Sep 17 00:00:00 2001 From: Marc-André Lureau Date: Fri, 15 Jul 2016 10:41:03 +0200 Subject: qjson: free str Release the qstring allocated in qjson_new(). Signed-off-by: Marc-André Lureau Reviewed-by: Eric Blake --- migration/qjson.c | 1 + 1 file changed, 1 insertion(+) (limited to 'migration/qjson.c') 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); } -- cgit v1.2.3-55-g7522