[issue3667] Reloading an extension module always leaks

2008-08-30 Thread Georg Brandl
Changes by Georg Brandl [EMAIL PROTECTED]: -- assignee: - loewis nosy: +loewis ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3667 ___ ___

[issue3667] Reloading an extension module always leaks

2008-08-28 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: The fix is actually simple: _PyImport_FindExtension() used to return a borrowed reference, the strong reference being stored in the PyImport_GetModuleDict() dictionary. All paths should behave the same. See attached patch. (for unit

[issue3667] Reloading an extension module always leaks

2008-08-24 Thread Amaury Forgeot d'Arc
New submission from Amaury Forgeot d'Arc [EMAIL PROTECTED]: With python2.6, reloading extension modules does not always leak memory: Python 2.6b2+ (trunk, Aug 19 2008, 23:45:24) [MSC v.1500 32 bit (Intel)] on win32 Type help, copyright, credits or license for more information. import sys