Here is just my thoughts about memory leak issue in the libgettextpo python
interface in the translate toolkit (storage/cpo.py)
***
***
My comments with a '->>' mark (hint: grep -C N)
***
->> Running some tests
$ py.test -k plurals
===================================================================== test process starts =====================================================================
executable: /usr/bin/python (2.5.2-final-0)
using py lib: /usr/lib/python2.5/site-packages/py <rev unknown>
===================================================================== test process starts =====================================================================
executable: /usr/bin/python (2.5.2-final-0)
using py lib: /usr/lib/python2.5/site-packages/py <rev unknown>
xerror2_cb 1 <ctypes.LP_po_message object at 0xbd20d8> /tmp/translateB79DqT.po 6 4294967295 0 duplicate message definition <ctypes.LP_po_message object at 0xbd2160> None 0 0 0 this is the location of the first definition
Exception exceptions.AttributeError: "'pofile' object has no attribute '_gpo_message_iterator'" in <bound method pofile.__del__ of <translate.storage.cpo.pofile object at 0xb79710>> ignored
Traceback (most recent call last):
File "/build/buildd/python2.5-2.5.2/Modules/_ctypes/callbacks.c", line 206, in 'calling callback function'
File "/home/georgeyk/devel/translate/translate/storage/cpo.py", line 85, in xerror2_cb
xerror2_cb 1 <ctypes.LP_po_message object at 0xbd21e8> /tmp/translate8Zy0Mr.po 8 4294967295 0 duplicate message definition <ctypes.LP_po_message object at 0xbd2270> None 0 0 0 this is the location of the first definition
Traceback (most recent call last):
File "/build/buildd/python2.5-2.5.2/Modules/_ctypes/callbacks.c", line 206, in 'calling callback function'
File "/home/georgeyk/devel/translate/translate/storage/cpo.py", line 85, in xerror2_cb
===================================================================== test process starts =====================================================================
executable: /usr/bin/python (2.5.2-final-0)
using py lib: /usr/lib/python2.5/site-packages/py <rev unknown>