don't leak node

This commit is contained in:
Benjamin Peterson 2012-01-19 08:48:18 -05:00
parent 79c1f96438
commit 188bee5873
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}
}