diff options
Diffstat (limited to 'Modules/_localemodule.c')
-rw-r--r-- | Modules/_localemodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_localemodule.c b/Modules/_localemodule.c index a3a1d12..61a5c7c 100644 --- a/Modules/_localemodule.c +++ b/Modules/_localemodule.c @@ -215,7 +215,7 @@ PyLocale_setlocale(PyObject* self, PyObject* args) if (*codeset && (enc = PyCodec_Encoder(codeset))) { /* Release previous file encoding */ if (Py_FileSystemDefaultEncoding) - free (Py_FileSystemDefaultEncoding); + free((char *)Py_FileSystemDefaultEncoding); Py_FileSystemDefaultEncoding = strdup(codeset); Py_DECREF(enc); } else |