From 3952cb0725d4c4d70bab959689a591a436a0c25c Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Fri, 20 Jan 1995 16:56:41 +0000 Subject: [PATCH] fix mem leak (localmap in optimize) --- Python/compile.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Python/compile.c b/Python/compile.c index 07c514ccf12..93d5b6d22c4 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)