]> granicus.if.org Git - python/commit
Fix for #489672 (Neil Norwitz): memory leak in test_sre.
authorGuido van Rossum <guido@python.org>
Fri, 7 Dec 2001 04:25:10 +0000 (04:25 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 7 Dec 2001 04:25:10 +0000 (04:25 +0000)
commit4e173846c8688402c81d181a58b1fd787f88527a
tree6a1002b424068033e7219088cc8ac42d12662b68
parent202dd1ef420359c05814cbfcc5c27e71c90c16d9
Fix for #489672 (Neil Norwitz): memory leak in test_sre.

(At least for the repeatable test case that Tim produced.)

pattern_subx(): Add missing DECREF(filter) in both exit branches
(normal and error return).  Also fix a DECREF(args) that should
certainly be a DECREF(match) -- because it's inside if (!args) and
right after allocation of match.
Modules/_sre.c