Mercurial > cpython-lru_cache-weakref
diff Python/getargs.c @ 17268:d467d184b429 2.0
- exceptions.c - make_class() Added a "goto finally" so that if
populate_methods() fails, the return status will be -1 (failure)
instead of 0 (success).
fini_exceptions(): When decref'ing the static pointers to the
exception classes, clear out their dictionaries too. This breaks a
cycle from class->dict->method->class and allows the classes with
unbound methods to be reclaimed. This plugs a large memory leak in a
common Py_Initialize()/dosomething/Py_Finalize() loop.
| author | Moshe Zadka <moshez@math.huji.ac.il> |
|---|---|
| date | Fri, 30 Mar 2001 21:01:09 +0000 |
| parents | 25ddd3dc7a7a |
| children | 992460c668c1 0b84b31aa975 |
