]> granicus.if.org Git - python/commitdiff
Fix a refleak in _sre
authorBrett Cannon <brett@python.org>
Fri, 18 Oct 2013 18:03:16 +0000 (14:03 -0400)
committerBrett Cannon <brett@python.org>
Fri, 18 Oct 2013 18:03:16 +0000 (14:03 -0400)
Misc/NEWS
Modules/_sre.c

index ffd8433a7dca5559daa709db25c2522f8c348fe0..a0af8cdd599bb997fe27d6ac55b7a35dbcce8e23 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -54,6 +54,8 @@ Core and Builtins
 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
index 2b00121a2553a41d0b28807c560b76d1d01b2f68..0db4ebed71980f6c442dbc514f6da1fc9a880f5e 100644 (file)
@@ -2427,6 +2427,7 @@ next:
         else
             item = PyUnicode_Join(joiner, list);
         Py_DECREF(joiner);
+        Py_DECREF(list);
         if (!item)
             return NULL;
     }