mirror of
https://github.com/python/cpython.git
synced 2025-10-10 08:53:14 +00:00
bpo-29802: Fix the cleaning up issue in PyUnicode_FSDecoder(). (#1217)
This commit is contained in:
parent
430020500c
commit
7a113a0cbf
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue