Fix more memory allocation issues found with failmalloc.

This commit is contained in:
Neal Norwitz 2006-07-22 16:20:49 +00:00
parent 468e45edc1
commit b59d08c2fb
6 changed files with 74 additions and 36 deletions

View file

@ -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,