From: Serhiy Storchaka Date: Thu, 20 Apr 2017 19:55:06 +0000 (+0300) Subject: bpo-29802: Fix the cleaning up issue in PyUnicode_FSDecoder(). (#1217) X-Git-Tag: v3.6.2rc1~212 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7a113a0cbf545588d61286fcc0e89141cf211735;p=python bpo-29802: Fix the cleaning up issue in PyUnicode_FSDecoder(). (#1217) --- diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 7871043681..4e0c663e33 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -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; }