summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorWalter Dörwald <walter@livinglogic.de>2003-08-15 15:00:26 (GMT)
committerWalter Dörwald <walter@livinglogic.de>2003-08-15 15:00:26 (GMT)
commitd4ade0885c9a1bf7013b555c93060e0126bfa7eb (patch)
tree384067927e2e7033c513fc8f50721cc6b809a631 /Objects
parentb2c7de46673e654aec8d2c9b000cce2b071a5093 (diff)
downloadcpython-d4ade0885c9a1bf7013b555c93060e0126bfa7eb.zip
cpython-d4ade0885c9a1bf7013b555c93060e0126bfa7eb.tar.gz
cpython-d4ade0885c9a1bf7013b555c93060e0126bfa7eb.tar.bz2
Fix another refcounting leak (in PyUnicode_DecodeUnicodeEscape()).
Diffstat (limited to 'Objects')
-rw-r--r--Objects/unicodeobject.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index 6044a56..694c174 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -1834,6 +1834,8 @@ PyObject *PyUnicode_DecodeUnicodeEscape(const char *s,
}
if (_PyUnicode_Resize(&v, (int)(p - PyUnicode_AS_UNICODE(v))))
goto onError;
+ Py_XDECREF(errorHandler);
+ Py_XDECREF(exc);
return (PyObject *)v;
ucnhashError: