[Python-Dev] Memory leaks?

Martin Sjögren martin@strakt.com
Wed, 25 Jul 2001 10:28:05 +0200


I'm a bit curious about the memory handling of the Py_InitModule4...

When adding methods, if PyCFunction_New fails, NULL is returned without
the module object being DECREF'd, and similarly, if the
PyDict_SetItemString fails, NULL is returned without neither module objec=
t
nor function object being DECREF'd.

Is this a problem, or is this taken care of somewhere else?

--=20
Martin Sj=F6gren
  martin@strakt.com              ICQ : 41245059
  Phone: +46 (0)31 405242        Cell: +46 (0)739 169191
  GPG key: http://www.strakt.com/~martin/gpg.html