summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1995-01-20 16:56:41 (GMT)
committerGuido van Rossum <guido@python.org>1995-01-20 16:56:41 (GMT)
commit3952cb0725d4c4d70bab959689a591a436a0c25c (patch)
tree4b2abfe19e59580ddc66334f88f159c38b078f64 /Python
parentd1b9393ba5e6dc24d147235c3a78f54bf5ef4a52 (diff)
downloadcpython-3952cb0725d4c4d70bab959689a591a436a0c25c.zip
cpython-3952cb0725d4c4d70bab959689a591a436a0c25c.tar.gz
cpython-3952cb0725d4c4d70bab959689a591a436a0c25c.tar.bz2
fix mem leak (localmap in optimize)
Diffstat (limited to 'Python')
-rw-r--r--Python/compile.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/compile.c b/Python/compile.c
index 07c514c..93d5b6d 100644
--- a/Python/compile.c
+++ b/Python/compile.c
@@ -2593,6 +2593,7 @@ optimize(c)
cur_instr[1] = i & 0xff;
cur_instr[2] = (i>>8) & 0xff;
fast_reserved = 1;
+ DECREF(localmap);
continue;
}
if (!fast_reserved)