[Python-checkins] cpython: Issue #15609: Fix refleak introduced by my last optimization
victor.stinner
python-checkins at python.org
Tue Oct 2 12:54:15 CEST 2012
http://hg.python.org/cpython/rev/5ddc7b3f2795
changeset: 79404:5ddc7b3f2795
user: Victor Stinner <victor.stinner at gmail.com>
date: Tue Oct 02 12:54:07 2012 +0200
summary:
Issue #15609: Fix refleak introduced by my last optimization
files:
Objects/unicodeobject.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -13449,8 +13449,11 @@
break;
}
- if (_PyLong_FormatWriter(writer, v, base, alternate) == -1)
+ if (_PyLong_FormatWriter(writer, v, base, alternate) == -1) {
+ Py_DECREF(iobj);
return -1;
+ }
+ Py_DECREF(iobj);
return 1;
}
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list