bpo-29802: Fix the cleaning up issue in PyUnicode_FSDecoder(). (#1217)

This commit is contained in:
Serhiy Storchaka 2017-04-20 22:55:06 +03:00 committed by GitHub
parent 430020500c
commit 7a113a0cbf

View file

@ -3902,6 +3902,7 @@ PyUnicode_FSDecoder(PyObject* arg, void* addr)
PyObject *output = NULL;
if (arg == NULL) {
Py_DECREF(*(PyObject**)addr);
*(PyObject**)addr = NULL;
return 1;
}