Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Closed
Description
The code generated for the Py_UNICODE converter (and derived converter LPCWSTR) looks like:
constPy_UNICODE*name;...if (!_PyArg_ParseXXX(...,name, ...)) { gotoexit;}...exit:PyMem_Free((void*)name);
If parsing fails,PyMem_Free() is called for uninitialized variable.
It is the only converter with non-trivial cleanup which does not have a mandatory initializer.