summaryrefslogtreecommitdiffstats
path: root/Parser/parsetok.c
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2012-01-19 13:48:18 (GMT)
committerBenjamin Peterson <benjamin@python.org>2012-01-19 13:48:18 (GMT)
commit188bee58737d366ea4bf296972d3389f64d1dae7 (patch)
tree77e28e3b24d0d922d036d5fc1ee8b1f2a1d42309 /Parser/parsetok.c
parent79c1f964387a54259cd974507a6b0430331a7751 (diff)
downloadcpython-188bee58737d366ea4bf296972d3389f64d1dae7.zip
cpython-188bee58737d366ea4bf296972d3389f64d1dae7.tar.gz
cpython-188bee58737d366ea4bf296972d3389f64d1dae7.tar.bz2
don't leak node
Diffstat (limited to 'Parser/parsetok.c')
-rw-r--r--Parser/parsetok.c1
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;
}
}