diff options
author | Benjamin Peterson <benjamin@python.org> | 2012-01-19 13:48:18 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2012-01-19 13:48:18 (GMT) |
commit | 188bee58737d366ea4bf296972d3389f64d1dae7 (patch) | |
tree | 77e28e3b24d0d922d036d5fc1ee8b1f2a1d42309 | |
parent | 79c1f964387a54259cd974507a6b0430331a7751 (diff) | |
download | cpython-188bee58737d366ea4bf296972d3389f64d1dae7.zip cpython-188bee58737d366ea4bf296972d3389f64d1dae7.tar.gz cpython-188bee58737d366ea4bf296972d3389f64d1dae7.tar.bz2 |
don't leak node
-rw-r--r-- | Parser/parsetok.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Parser/parsetok.c b/Parser/parsetok.c index ad5f7ba..c4b7690 100644 --- a/Parser/parsetok.c +++ b/Parser/parsetok.c @@ -239,6 +239,7 @@ parsetok(struct tok_state *tok, grammar *g, int start, perrdetail *err_ret, if (c && c != '#') { err_ret->error = E_BADSINGLE; + PyNode_Free(n); n = NULL; } } |