1
0
mirror of https://github.com/stedolan/jq.git synced 2024-05-11 05:55:39 +00:00

Fix streaming bug (fuzzing)

This commit is contained in:
Nicolas Williams
2014-12-30 01:33:45 -06:00
parent 752e00bc66
commit 6981b46338

View File

@ -90,6 +90,7 @@ static void parser_reset(struct jv_parser* p) {
if ((p->flags & JV_PARSE_STREAMING)) {
jv_free(p->path);
p->path = jv_array();
p->stacklen = 0;
}
p->last_seen = JV_LAST_NONE;
jv_free(p->output);