diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2005-11-15 07:17:53 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2005-11-15 07:17:53 (GMT) |
commit | 6b347890462d07ee87593d5619d84c67d4729232 (patch) | |
tree | 298897f3af2d16312a77824ef17bdd76a117159a /Python | |
parent | af8f9749677729fd39fd99df5779c195b4eeefed (diff) | |
download | cpython-6b347890462d07ee87593d5619d84c67d4729232.zip cpython-6b347890462d07ee87593d5619d84c67d4729232.tar.gz cpython-6b347890462d07ee87593d5619d84c67d4729232.tar.bz2 |
Fix another memory leak or two (one real, one potential)
Diffstat (limited to 'Python')
-rw-r--r-- | Python/ast.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Python/ast.c b/Python/ast.c index 428b0cd..e5df906 100644 --- a/Python/ast.c +++ b/Python/ast.c @@ -1588,6 +1588,7 @@ ast_for_power(struct compiling *c, const node *n) } tmp = BinOp(e, Pow, f, LINENO(n)); if (!tmp) { + free_expr(f); free_expr(e); return NULL; } @@ -2112,11 +2113,11 @@ ast_for_exprlist(struct compiling *c, const node *n, int context) e = ast_for_expr(c, CHILD(n, i)); if (!e) goto error; + asdl_seq_SET(seq, i / 2, e); if (context) { if (!set_context(e, context, CHILD(n, i))) goto error; } - asdl_seq_SET(seq, i / 2, e); } return seq; |