Mercurial > cpython-lru_cache-weakref
diff Python/errors.c @ 6789:bb440a2975ab legacy-trunk
Fix subtle bug in cleanup code in PyErr_NormalizeException(), detected
by Marc Lemburg. There's a path through the code where *val is NULL,
but value isn't, and value should be DECREF'ed.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Tue, 09 Dec 1997 14:11:39 +0000 |
| parents | 4cb223f29337 |
| children | ca1c669bb041 |
line wrap: on
line diff
--- a/Python/errors.c Tue Dec 09 03:28:42 1997 +0000 +++ b/Python/errors.c Tue Dec 09 14:11:39 1997 +0000 @@ -219,8 +219,8 @@ *val = value; return; finally: - Py_DECREF(*exc); - Py_DECREF(*val); + Py_DECREF(type); + Py_DECREF(value); Py_XDECREF(*tb); PyErr_Fetch(exc, val, tb); /* normalize recursively */
