]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Backport checkin:
authorWalter Dörwald <walter@livinglogic.de>
Mon, 28 Nov 2005 22:16:22 +0000 (22:16 +0000)
committerWalter Dörwald <walter@livinglogic.de>
Mon, 28 Nov 2005 22:16:22 +0000 (22:16 +0000)
Fix leaked reference to None.

Objects/unicodeobject.c

index 5d096edee63d4073a7a9395ba63f373330b5f4db..d149f0ba2dd18da3920cf0d7153c79885478398e 100644 (file)
@@ -2889,6 +2889,7 @@ PyObject *PyUnicode_DecodeCharmap(const char *s,
                Py_DECREF(x);
                goto onError;
            }
+           Py_DECREF(x);
            continue;
        }
        else if (PyUnicode_Check(x)) {