Set marks to NULL after freeing

realloc() was being called on an already freed pointer.

Fixes #2900
This commit is contained in:
Orestis Floros 2017-09-07 03:53:28 +03:00
parent e5008ca0dc
commit 554775f694
1 changed files with 1 additions and 0 deletions

View File

@ -157,6 +157,7 @@ static int json_end_map(void *ctx) {
}
free(marks);
marks = NULL;
num_marks = 0;
}