diff options
author | Benjamin Peterson <benjamin@python.org> | 2012-01-02 16:12:13 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2012-01-02 16:12:13 (GMT) |
commit | 5e458f520ca6ae0f7b73bfc2de310ac0a0139ded (patch) | |
tree | a0bfa0bd8890f02bb7a1252a53da3e601a97ffd5 /Objects | |
parent | 4c13a4a3522b087f31465bf4e097744a8a17d014 (diff) | |
download | cpython-5e458f520ca6ae0f7b73bfc2de310ac0a0139ded.zip cpython-5e458f520ca6ae0f7b73bfc2de310ac0a0139ded.tar.gz cpython-5e458f520ca6ae0f7b73bfc2de310ac0a0139ded.tar.bz2 |
also decref the right thing
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 e152e73..9a9703a 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -9140,7 +9140,7 @@ PyUnicode_Count(PyObject *str, return -1; } if (PyUnicode_READY(sub_obj) == -1 || PyUnicode_READY(str_obj) == -1) { - Py_DECREF(substr); + Py_DECREF(sub_obj); Py_DECREF(str_obj); return -1; } |