summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-10-22 09:08:10 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-10-22 09:08:10 (GMT)
commitdd18d3ad9ef26099b0f8677ff2298e21669f3686 (patch)
tree989b97711c001bfcca110f7633db4796de691aa2 /Objects
parentdf7b66546c0b59dc8421d48cb528e69b1c89e280 (diff)
downloadcpython-dd18d3ad9ef26099b0f8677ff2298e21669f3686.zip
cpython-dd18d3ad9ef26099b0f8677ff2298e21669f3686.tar.gz
cpython-dd18d3ad9ef26099b0f8677ff2298e21669f3686.tar.bz2
Fix unicode_subtype_new() on debug build
Patch written by Stefan Behnel.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/unicodeobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index 01d87dc..ec4aed6 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -13825,11 +13825,11 @@ unicode_subtype_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
Py_MEMCPY(data, PyUnicode_DATA(unicode),
kind * (length + 1));
- Py_DECREF(unicode);
assert(_PyUnicode_CheckConsistency(self, 1));
#ifdef Py_DEBUG
_PyUnicode_HASH(self) = _PyUnicode_HASH(unicode);
#endif
+ Py_DECREF(unicode);
return (PyObject *)self;
onError: