tree_append_json: fix memory leaks
This commit is contained in:
parent
f904511b7e
commit
414be6290d
|
@ -640,8 +640,11 @@ void tree_append_json(Con *con, const char *filename, char **errormsg) {
|
||||||
|
|
||||||
setlocale(LC_NUMERIC, "");
|
setlocale(LC_NUMERIC, "");
|
||||||
yajl_complete_parse(hand);
|
yajl_complete_parse(hand);
|
||||||
|
yajl_free(hand);
|
||||||
|
yajl_gen_free(g);
|
||||||
|
|
||||||
fclose(f);
|
fclose(f);
|
||||||
|
free(buf);
|
||||||
if (to_focus)
|
if (to_focus)
|
||||||
con_focus(to_focus);
|
con_focus(to_focus);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue