Skip to content
This repository has been archived by the owner on Nov 5, 2019. It is now read-only.

Commit

Permalink
qjson: free str
Browse files Browse the repository at this point in the history
Release the qstring allocated in qjson_new().

Signed-off-by: Marc-André Lureau <[email protected]>
Reviewed-by: Eric Blake <[email protected]>
  • Loading branch information
elmarco committed Aug 7, 2016
1 parent 9d324b0 commit df37dd6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions migration/qjson.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,5 +109,6 @@ void qjson_finish(QJSON *json)

void qjson_destroy(QJSON *json)
{
QDECREF(json->str);
g_free(json);
}

0 comments on commit df37dd6

Please sign in to comment.