commit | 7a113a0cbf545588d61286fcc0e89141cf211735 | [log] [tgz] |
---|---|---|
author | Serhiy Storchaka <storchaka@gmail.com> | Thu Apr 20 22:55:06 2017 +0300 |
committer | GitHub <noreply@github.com> | Thu Apr 20 22:55:06 2017 +0300 |
tree | 7a4c869a8e934baca9e319105d2de4901d2516c5 | |
parent | 430020500c56259d31e07d32771f017952bad4e0 [diff] [blame] |
bpo-29802: Fix the cleaning up issue in PyUnicode_FSDecoder(). (#1217)
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 7871043..4e0c663 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c
@@ -3902,6 +3902,7 @@ PyObject *output = NULL; if (arg == NULL) { Py_DECREF(*(PyObject**)addr); + *(PyObject**)addr = NULL; return 1; }