Set marks to NULL after freeing
realloc() was being called on an already freed pointer. Fixes #2900
This commit is contained in:
parent
e5008ca0dc
commit
554775f694
|
@ -157,6 +157,7 @@ static int json_end_map(void *ctx) {
|
||||||
}
|
}
|
||||||
|
|
||||||
free(marks);
|
free(marks);
|
||||||
|
marks = NULL;
|
||||||
num_marks = 0;
|
num_marks = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue