Commit 4e17384
committed
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.1 parent 202dd1e commit 4e17384
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2199 | 2199 | | |
2200 | 2200 | | |
2201 | 2201 | | |
2202 | | - | |
| 2202 | + | |
2203 | 2203 | | |
2204 | 2204 | | |
2205 | 2205 | | |
| |||
2246 | 2246 | | |
2247 | 2247 | | |
2248 | 2248 | | |
| 2249 | + | |
| 2250 | + | |
2249 | 2251 | | |
2250 | 2252 | | |
2251 | 2253 | | |
| |||
2258 | 2260 | | |
2259 | 2261 | | |
2260 | 2262 | | |
| 2263 | + | |
2261 | 2264 | | |
2262 | 2265 | | |
2263 | 2266 | | |
| |||
0 commit comments