[issue26868] Incorrect check for return value of PyModule_AddObject in _csv.c
Serhiy Storchaka
report at bugs.python.org
Wed Apr 27 03:19:34 EDT 2016
Serhiy Storchaka added the comment:
Testing returned value of PyModule_AddObject() is correct. This is a matter of style what to use: `if (...)`, `if (... == -1)` or `if (... < 0)`.
But the problem with a leak is more general. I have opened a discussion on Python-Dev: http://comments.gmane.org/gmane.comp.python.devel/157545 .
----------
nosy: +serhiy.storchaka
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26868>
_______________________________________
More information about the Python-bugs-list
mailing list