From 931352d4bfab72897dc8012c78d9f64739656226 Mon Sep 17 00:00:00 2001 From: Hernan Grecco Date: Tue, 5 Mar 2013 14:31:21 -0300 Subject: [PATCH] Fix memory leak in Python 3.2 --- llvmpy/include/python3adapt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvmpy/include/python3adapt.h b/llvmpy/include/python3adapt.h index a60153f..db7f28d 100644 --- a/llvmpy/include/python3adapt.h +++ b/llvmpy/include/python3adapt.h @@ -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