mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 23:03:54 -06:00
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>
This commit is contained in:
parent
9d324b0e67
commit
df37dd6ffe
1 changed files with 1 additions and 0 deletions
|
@ -109,5 +109,6 @@ void qjson_finish(QJSON *json)
|
|||
|
||||
void qjson_destroy(QJSON *json)
|
||||
{
|
||||
QDECREF(json->str);
|
||||
g_free(json);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue