commit | 5e458f520ca6ae0f7b73bfc2de310ac0a0139ded | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <benjamin@python.org> | Mon Jan 02 10:12:13 2012 -0600 |
committer | Benjamin Peterson <benjamin@python.org> | Mon Jan 02 10:12:13 2012 -0600 |
tree | a0bfa0bd8890f02bb7a1252a53da3e601a97ffd5 | |
parent | 4c13a4a3522b087f31465bf4e097744a8a17d014 [diff] [blame] |
also decref the right thing
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 @@ 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; }