Commit b2db3d24 authored by Benjamin Peterson's avatar Benjamin Peterson

don't leak node

parent 072011b7
...@@ -239,6 +239,7 @@ parsetok(struct tok_state *tok, grammar *g, int start, perrdetail *err_ret, ...@@ -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;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment