]> granicus.if.org Git - python/commitdiff
Fix bug 126587: matchobject.groupdict() leaks memory because of a missing
authorAndrew M. Kuchling <amk@amk.ca>
Fri, 22 Dec 2000 14:39:10 +0000 (14:39 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Fri, 22 Dec 2000 14:39:10 +0000 (14:39 +0000)
    DECREF

Modules/_sre.c

index 954547f553d2f206f23915e8a67ecdbc49e20f92..ccbd7b2857ad14a951effa4ac038763c767f7f5d 100644 (file)
@@ -1996,6 +1996,7 @@ match_groupdict(MatchObject* self, PyObject* args, PyObject* kw)
         }
         /* FIXME: <fl> this can fail, right? */
         PyDict_SetItem(result, key, item);
+       Py_DECREF(item);
     }
 
     Py_DECREF(keys);