From 9db2db4fa4bc2a955170f727fde68ff4a4de3080 Mon Sep 17 00:00:00 2001 From: Irit Katriel <1055913+iritkatriel@users.noreply.github.com> Date: Tue, 11 Apr 2023 21:08:29 +0100 Subject: [PATCH] gh-87092: fix refleak in peepholer test harness (#103448) --- Python/compile.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Python/compile.c b/Python/compile.c index 15fca8296c69..3e152060d2f1 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -7148,10 +7148,6 @@ _PyCompile_OptimizeCfg(PyObject *instructions, PyObject *consts) } cfg_builder g; - memset(&g, 0, sizeof(cfg_builder)); - if (_PyCfgBuilder_Init(&g) < 0) { - goto error; - } if (instructions_to_cfg(instructions, &g) < 0) { goto error; } -- 2.47.3