From 414be6290d83ebed13d0c5a869fa5a3b0a54ddcd Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sat, 9 Jan 2016 14:17:47 +0100 Subject: [PATCH] tree_append_json: fix memory leaks --- src/load_layout.c | 3 +++ 1 file changed, 3 insertions(+) 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); }