[issue3274] Py_CLEAR(tmp) seg faults
Nick Coghlan
report at bugs.python.org
Thu Jul 10 12:11:08 CEST 2008
Nick Coghlan <ncoghlan at gmail.com> added the comment:
A better option may be to append _tmp to the passed in token:
#define Py_CLEAR(op) \
do { \
if (op) { \
PyObject *op##_tmp = (PyObject *)(op); \
(op) = NULL; \
Py_DECREF(op##_tmp); \
} \
} while (0)
----------
nosy: +ncoghlan
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3274>
_______________________________________
More information about the Python-bugs-list
mailing list