Skip to content

Commit 7a113a0

Browse files
bpo-29802: Fix the cleaning up issue in PyUnicode_FSDecoder(). (#1217)
1 parent 4300205 commit 7a113a0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Objects/unicodeobject.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3902,6 +3902,7 @@ PyUnicode_FSDecoder(PyObject* arg, void* addr)
39023902
PyObject *output = NULL;
39033903
if (arg == NULL) {
39043904
Py_DECREF(*(PyObject**)addr);
3905+
*(PyObject**)addr = NULL;
39053906
return 1;
39063907
}
39073908

0 commit comments

Comments
 (0)