Fix memory leak in Python 3.2
This commit is contained in:
parent
e4996f02d7
commit
931352d4bf
1 changed files with 1 additions and 1 deletions
|
|
@ -25,7 +25,7 @@
|
|||
#define PyFile_Check(x) (1)
|
||||
|
||||
#if (PY_VERSION_HEX < 0x03030000)
|
||||
#define PyString_AsString(x) PyBytes_AsString(PyUnicode_AsUTF8String(x))
|
||||
#define PyString_AsString _PyUnicode_AsString
|
||||
#else
|
||||
#define PyString_AsString PyUnicode_AsUTF8
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue