[issue18556] ctypes' U_set() doesn't check return value of PyUnicode_AsWideChar()
Matthew Barnett
report at bugs.python.org
Thu Jul 25 21:28:44 CEST 2013
Matthew Barnett added the comment:
Re msg193703: A little before that, 'value' is INCREF'ed, and then:
wstr = PyUnicode_AsUnicodeAndSize(value, &size);
if (wstr == NULL)
return NULL;
Shouldn't 'value' be DECREF'ed before returning?
----------
nosy: +mrabarnett
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18556>
_______________________________________
More information about the Python-bugs-list
mailing list