Fix PyUnicode_EncodeCharmap()

This commit is contained in:
Victor Stinner 2011-11-04 00:24:51 +01:00
parent 7931d9a951
commit fc026c98d8

View file

@ -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 *