Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 188bee5

Browse files
committed
don't leak node
1 parent 79c1f96 commit 188bee5

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Parser/parsetok.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ parsetok(struct tok_state *tok, grammar *g, int start, perrdetail *err_ret,
239239

240240
if (c && c != '#') {
241241
err_ret->error = E_BADSINGLE;
242+
PyNode_Free(n);
242243
n = NULL;
243244
}
244245
}

0 commit comments

Comments
 (0)