[Python-checkins] cpython: Fix a refleak in _sre
brett.cannon
python-checkins at python.org
Fri Oct 18 20:03:23 CEST 2013
http://hg.python.org/cpython/rev/5010e0c13aa3
changeset: 86446:5010e0c13aa3
user: Brett Cannon <brett at python.org>
date: Fri Oct 18 14:03:16 2013 -0400
summary:
Fix a refleak in _sre
files:
Misc/NEWS | 2 ++
Modules/_sre.c | 1 +
2 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -54,6 +54,8 @@
Library
-------
+- Fix a reference count leak in _sre.
+
- Issue #19262: Initial check in of the 'asyncio' package (a.k.a. Tulip,
a.k.a. PEP 3156). There are no docs yet, and the PEP is slightly
out of date with the code. This module will have *provisional* status
diff --git a/Modules/_sre.c b/Modules/_sre.c
--- a/Modules/_sre.c
+++ b/Modules/_sre.c
@@ -2427,6 +2427,7 @@
else
item = PyUnicode_Join(joiner, list);
Py_DECREF(joiner);
+ Py_DECREF(list);
if (!item)
return NULL;
}
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list