Skip to content

Commit

Permalink
pythongh-87092: fix refleak in peepholer test harness (python#103448)
Browse files Browse the repository at this point in the history
  • Loading branch information
iritkatriel authored and aisk committed Apr 18, 2023
1 parent 94ce541 commit 36b5830
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Python/compile.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 36b5830

Please sign in to comment.