Fix PyUnicode_EncodeCharmap()

This commit is contained in:
Victor Stinner 2011-11-04 00:24:51 +01:00
parent 7931d9a951
commit fc026c98d8
1 changed files with 1 additions and 1 deletions

View File

@ -8397,7 +8397,7 @@ PyUnicode_EncodeCharmap(const Py_UNICODE *p,
return NULL;
result = _PyUnicode_EncodeCharmap(unicode, mapping, errors);
Py_DECREF(unicode);
return NULL;
return result;
}
PyObject *