From: Michael Stapelberg Date: Sat, 9 Jan 2016 13:17:47 +0000 (+0100) Subject: tree_append_json: fix memory leaks X-Git-Tag: 4.12~47 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=414be6290d83ebed13d0c5a869fa5a3b0a54ddcd;p=i3%2Fi3 tree_append_json: fix memory leaks --- diff --git a/src/load_layout.c b/src/load_layout.c index 9856d078..33435236 100644 --- a/src/load_layout.c +++ b/src/load_layout.c @@ -640,8 +640,11 @@ void tree_append_json(Con *con, const char *filename, char **errormsg) { setlocale(LC_NUMERIC, ""); yajl_complete_parse(hand); + yajl_free(hand); + yajl_gen_free(g); fclose(f); + free(buf); if (to_focus) con_focus(to_focus); }