comparison Python/thread_lwp.h @ 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 6f6f965c5e2d
children ebfd87e87884
comparison
equal deleted inserted replaced
17267:42b1a699a5dd 17268:d467d184b429