mirror of
https://github.com/python/cpython.git
synced 2025-09-03 07:28:59 +00:00
don't leak node
This commit is contained in:
parent
79c1f96438
commit
188bee5873
1 changed files with 1 additions and 0 deletions
|
@ -239,6 +239,7 @@ parsetok(struct tok_state *tok, grammar *g, int start, perrdetail *err_ret,
|
||||||
|
|
||||||
if (c && c != '#') {
|
if (c && c != '#') {
|
||||||
err_ret->error = E_BADSINGLE;
|
err_ret->error = E_BADSINGLE;
|
||||||
|
PyNode_Free(n);
|
||||||
n = NULL;
|
n = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue