aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Python/compile.c
diff options
context:
space:
mode:
authorIrit Katriel <1055913+iritkatriel@users.noreply.github.com>2023-04-11 21:08:29 +0100
committerGitHub <noreply@github.com>2023-04-11 21:08:29 +0100
commit9db2db4fa4bc2a955170f727fde68ff4a4de3080 (patch)
treee4b4f5cf3b0bbf286deaa05ac21c54d163a2be69 /Python/compile.c
parentebc81034278ea186b4110c7dbf6d1c2a0ada9398 (diff)
downloadcpython-9db2db4fa4bc2a955170f727fde68ff4a4de3080.tar.gz
cpython-9db2db4fa4bc2a955170f727fde68ff4a4de3080.zip
gh-87092: fix refleak in peepholer test harness (#103448)
Diffstat (limited to 'Python/compile.c')
-rw-r--r--Python/compile.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/Python/compile.c b/Python/compile.c
index 15fca8296c6..3e152060d2f 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;
}