diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-10-22 09:08:10 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-10-22 09:08:10 (GMT) |
commit | dd18d3ad9ef26099b0f8677ff2298e21669f3686 (patch) | |
tree | 989b97711c001bfcca110f7633db4796de691aa2 /Objects | |
parent | df7b66546c0b59dc8421d48cb528e69b1c89e280 (diff) | |
download | cpython-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.c | 2 |
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: |