commit | 9f167606665c186179bf362d4227e722731cd1b9 | [log] [tgz] |
---|---|---|
author | Georg Brandl <georg@python.org> | Sun Jun 04 21:46:16 2006 +0000 |
committer | Georg Brandl <georg@python.org> | Sun Jun 04 21:46:16 2006 +0000 |
tree | 1ab8469f32eba313583f23ed89babdce88040d2f | |
parent | 3f767795f6784ca6bf797b055be67fce5bf2fa06 [diff] |
Repair refleaks in unicodeobject.
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index eb5bdd8..970e69f 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c
@@ -3194,6 +3194,8 @@ goto failed1; if (PyDict_SetItem(result, key, value) == -1) goto failed1; + Py_DECREF(key); + Py_DECREF(value); } return result; failed1: @@ -3389,6 +3391,7 @@ *outpos += repsize; } } + Py_DECREF(rep); return enc_SUCCESS; }