From 9bc4565a59ba474a1aec74e333630afa6da6d2dd Mon Sep 17 00:00:00 2001 From: Bruno Pinto Date: Thu, 19 Apr 2018 21:28:52 +0100 Subject: [PATCH] Fix memory leak on swaybar Code from @NilsBrause Ref #1820 --- swaybar/i3bar.c | 1 + 1 file changed, 1 insertion(+) diff --git a/swaybar/i3bar.c b/swaybar/i3bar.c index 923ad7558..dced13d28 100644 --- a/swaybar/i3bar.c +++ b/swaybar/i3bar.c @@ -104,6 +104,7 @@ static bool i3bar_parse_json(struct status_line *status, const char *text) { json_object_get_int(border_right) : 1; wl_list_insert(&status->blocks, &block->link); } + json_object_put(results); return true; }