Sfoglia il codice sorgente

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>
Marc-André Lureau 9 anni fa
parent
commit
df37dd6ffe
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      migration/qjson.c

+ 1 - 0
migration/qjson.c

@@ -109,5 +109,6 @@ void qjson_finish(QJSON *json)
 
 
 void qjson_destroy(QJSON *json)
 void qjson_destroy(QJSON *json)
 {
 {
+    QDECREF(json->str);
     g_free(json);
     g_free(json);
 }
 }