From: Orestis Floros Date: Thu, 7 Sep 2017 00:53:28 +0000 (+0300) Subject: Set marks to NULL after freeing X-Git-Tag: 4.14.1~66 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b48cbe42af94cf69700843922e57c68b81f3fddd;p=i3%2Fi3 Set marks to NULL after freeing realloc() was being called on an already freed pointer. Fixes #2900 --- diff --git a/src/load_layout.c b/src/load_layout.c index 632c6ec7..7961e17f 100644 --- a/src/load_layout.c +++ b/src/load_layout.c @@ -157,6 +157,7 @@ static int json_end_map(void *ctx) { } free(marks); + marks = NULL; num_marks = 0; }