Mercurial > cpython-lru_cache-weakref
diff Python/symtable.c @ 39135:12e973bdfeee legacy-trunk
Fix more memory allocation issues found with failmalloc.
| author | Neal Norwitz <nnorwitz@gmail.com> |
|---|---|
| date | Sat, 22 Jul 2006 16:20:49 +0000 |
| parents | 7c09b66f04bd |
| children | 75a7106662a3 |
line wrap: on
line diff
--- a/Python/symtable.c Fri Jul 21 22:44:07 2006 +0000 +++ b/Python/symtable.c Sat Jul 22 16:20:49 2006 +0000 @@ -727,7 +727,7 @@ { 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,
