Unverified Kaydet (Commit) b9d2e976 authored tarafından Pablo Galindo's avatar Pablo Galindo Kaydeden (comit) GitHub

Fix potential memory leak in parsetok.c (GH-11832)

üst 3dc67d03
......@@ -370,7 +370,6 @@ parsetok(struct tok_state *tok, grammar *g, int start, perrdetail *err_ret,
type_ignores.items[i], 0);
}
}
growable_int_array_deallocate(&type_ignores);
#ifndef PGEN
/* Check that the source for a single input statement really
......@@ -405,6 +404,8 @@ parsetok(struct tok_state *tok, grammar *g, int start, perrdetail *err_ret,
else
n = NULL;
growable_int_array_deallocate(&type_ignores);
#ifdef PY_PARSER_REQUIRES_FUTURE_KEYWORD
*flags = ps->p_flags;
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment