diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2006-07-22 16:20:49 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2006-07-22 16:20:49 (GMT) |
commit | b59d08c2fb407bbb1527b72141e125760863c2ba (patch) | |
tree | edb47a12535cd4e70352d3f396f68bbd6326299a /Python/symtable.c | |
parent | 468e45edc1694606b6f2c4eb901eb9485bb493da (diff) | |
download | cpython-b59d08c2fb407bbb1527b72141e125760863c2ba.zip cpython-b59d08c2fb407bbb1527b72141e125760863c2ba.tar.gz cpython-b59d08c2fb407bbb1527b72141e125760863c2ba.tar.bz2 |
Fix more memory allocation issues found with failmalloc.
Diffstat (limited to 'Python/symtable.c')
-rw-r--r-- | Python/symtable.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/symtable.c b/Python/symtable.c index fae9208..c010b7a 100644 --- a/Python/symtable.c +++ b/Python/symtable.c @@ -727,7 +727,7 @@ symtable_exit_block(struct symtable *st, void *ast) { Py_ssize_t end; - Py_DECREF(st->st_cur); + Py_CLEAR(st->st_cur); end = PyList_GET_SIZE(st->st_stack) - 1; if (end >= 0) { st->st_cur = (PySTEntryObject *)PyList_GET_ITEM(st->st_stack, |