summaryrefslogtreecommitdiffstats
path: root/Objects/unicodeobject.c
diff options
context:
space:
mode:
authorWalter Dörwald <walter@livinglogic.de>2005-11-28 22:15:56 (GMT)
committerWalter Dörwald <walter@livinglogic.de>2005-11-28 22:15:56 (GMT)
commitd4fff1731c8854b80423a4ddca2aded35959c4d5 (patch)
tree976028deec4025aa438f686ec6789754c1e4dcd9 /Objects/unicodeobject.c
parentb45b315855f5523d2aa5c3ad685c2c9530d42229 (diff)
downloadcpython-d4fff1731c8854b80423a4ddca2aded35959c4d5.zip
cpython-d4fff1731c8854b80423a4ddca2aded35959c4d5.tar.gz
cpython-d4fff1731c8854b80423a4ddca2aded35959c4d5.tar.bz2
Fix leaked reference to None.
Diffstat (limited to 'Objects/unicodeobject.c')
-rw-r--r--Objects/unicodeobject.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index 7100336..013fe4a 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -2928,6 +2928,7 @@ PyObject *PyUnicode_DecodeCharmap(const char *s,
Py_DECREF(x);
goto onError;
}
+ Py_DECREF(x);
continue;
}
else if (PyUnicode_Check(x)) {