Commit fc026c98 authored by Victor Stinner's avatar Victor Stinner

Fix PyUnicode_EncodeCharmap()

parent 7931d9a9
...@@ -8397,7 +8397,7 @@ PyUnicode_EncodeCharmap(const Py_UNICODE *p, ...@@ -8397,7 +8397,7 @@ PyUnicode_EncodeCharmap(const Py_UNICODE *p,
return NULL; return NULL;
result = _PyUnicode_EncodeCharmap(unicode, mapping, errors); result = _PyUnicode_EncodeCharmap(unicode, mapping, errors);
Py_DECREF(unicode); Py_DECREF(unicode);
return NULL; return result;
} }
PyObject * PyObject *
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment