From: Irit Katriel <1055913+iritkatriel@users.noreply.github.com> Date: Tue, 11 Apr 2023 20:08:29 +0000 (+0100) Subject: gh-87092: fix refleak in peepholer test harness (#103448) X-Git-Tag: v3.12.0b1~564 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9db2db4fa4bc2a955170f727fde68ff4a4de3080;p=thirdparty%2FPython%2Fcpython.git gh-87092: fix refleak in peepholer test harness (#103448) --- 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; }