Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix refleak
  • Loading branch information
iritkatriel committed Nov 5, 2022
commit b07b9c6011e1d1f11ed75168ce1651f86800147a
2 changes: 2 additions & 0 deletions Python/compile.c
Original file line number Diff line number Diff line change
Expand Up @@ -10012,7 +10012,9 @@ _PyCompile_CodeGen(PyObject *ast, PyObject *filename, PyCompilerFlags *flags,
res = cfg_to_instructions(g);

finally:
compiler_exit_scope(&c);
compiler_free(&c);
_PyArena_Free(arena);
return res;
}

Expand Down