From a299d65abd356530105c601930153640c22899b7 Mon Sep 17 00:00:00 2001 From: Irit Katriel Date: Tue, 11 Apr 2023 18:53:19 +0100 Subject: [PATCH] gh-87092: fix refleak in peepholer test harness --- Python/compile.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Python/compile.c b/Python/compile.c index 15fca8296c69ec..3e152060d2f1c2 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; }