summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}
}