Skip to content

Commit 36b5830

Browse files
iritkatrielaisk
authored andcommitted
pythongh-87092: fix refleak in peepholer test harness (python#103448)
1 parent 94ce541 commit 36b5830

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Python/compile.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7148,10 +7148,6 @@ _PyCompile_OptimizeCfg(PyObject *instructions, PyObject *consts)
71487148
}
71497149

71507150
cfg_builder g;
7151-
memset(&g, 0, sizeof(cfg_builder));
7152-
if (_PyCfgBuilder_Init(&g) < 0) {
7153-
goto error;
7154-
}
71557151
if (instructions_to_cfg(instructions, &g) < 0) {
71567152
goto error;
71577153
}

0 commit comments

Comments
 (0)