[Python-checkins] commit of r41450 - python/trunk/Python
neal.norwitz@python.org
neal.norwitz at python.org
Tue Nov 15 08:17:54 CET 2005
Author: neal.norwitz
Date: Tue Nov 15 08:17:53 2005
New Revision: 41450
Modified:
python/trunk/Python/ast.c
Log:
Fix another memory leak or two (one real, one potential)
Modified: python/trunk/Python/ast.c
==============================================================================
--- python/trunk/Python/ast.c (original)
+++ python/trunk/Python/ast.c Tue Nov 15 08:17:53 2005
@@ -1588,6 +1588,7 @@
}
tmp = BinOp(e, Pow, f, LINENO(n));
if (!tmp) {
+ free_expr(f);
free_expr(e);
return NULL;
}
@@ -2112,11 +2113,11 @@
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;
More information about the Python-checkins
mailing list