From: Orestis Floros Date: Thu, 7 Sep 2017 00:53:28 +0000 (+0300) Subject: Set marks to NULL after freeing X-Git-Tag: 4.15~109^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=refs%2Fpull%2F2901%2Fhead;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; }