diff options
Diffstat (limited to 'Objects/unicodeobject.c')
-rw-r--r-- | Objects/unicodeobject.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 8dcec51..1e4907a 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -452,7 +452,6 @@ PyObject *PyUnicode_FromEncodedObject(register PyObject *obj, { const char *s = NULL; int len; - int owned = 0; PyObject *v; if (obj == NULL) { @@ -510,15 +509,9 @@ PyObject *PyUnicode_FromEncodedObject(register PyObject *obj, else v = PyUnicode_Decode(s, len, encoding, errors); - if (owned) { - Py_DECREF(obj); - } return v; onError: - if (owned) { - Py_DECREF(obj); - } return NULL; } |