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 committed by Michael Stapelberg
parent f26b00cb67
commit b48cbe42af
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;
}