[Python-checkins] r46649 - python/trunk/Objects/unicodeobject.c
georg.brandl
python-checkins at python.org
Sun Jun 4 23:46:33 CEST 2006
Author: georg.brandl
Date: Sun Jun 4 23:46:16 2006
New Revision: 46649
Modified:
python/trunk/Objects/unicodeobject.c
Log:
Repair refleaks in unicodeobject.
Modified: python/trunk/Objects/unicodeobject.c
==============================================================================
--- python/trunk/Objects/unicodeobject.c (original)
+++ python/trunk/Objects/unicodeobject.c Sun Jun 4 23:46:16 2006
@@ -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;
}
More information about the Python-checkins
mailing list