summaryrefslogtreecommitdiff
path: root/Parser
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2012-01-19 08:48:18 -0500
committerBenjamin Peterson <benjamin@python.org>2012-01-19 08:48:18 -0500
commit188bee58737d366ea4bf296972d3389f64d1dae7 (patch)
tree77e28e3b24d0d922d036d5fc1ee8b1f2a1d42309 /Parser
parent79c1f964387a54259cd974507a6b0430331a7751 (diff)
downloadcpython-git-188bee58737d366ea4bf296972d3389f64d1dae7.tar.gz
don't leak node
Diffstat (limited to 'Parser')
-rw-r--r--Parser/parsetok.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Parser/parsetok.c b/Parser/parsetok.c
index ad5f7ba5d4..c4b7690b2e 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;
}
}