]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
- exceptions.c - make_class() Added a "goto finally" so that if
authorMoshe Zadka <moshez@math.huji.ac.il>
Fri, 30 Mar 2001 21:01:09 +0000 (21:01 +0000)
committerMoshe Zadka <moshez@math.huji.ac.il>
Fri, 30 Mar 2001 21:01:09 +0000 (21:01 +0000)
commit23ec9ebaf9bc0cb8fa17be69b07d793584797c49
tree80df8b39e35e2b1fde1675486da3f9894f4f94e6
parent324ebb156fe776a5fe88536ea18bfefd9b475b5e
- 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.
Misc/NEWS
Python/exceptions.c