gh-120754: Fix memory leak in FileIO.__init__() (#124225) · python/cpython@43cd7aa · GitHub
Skip to content

Commit 43cd7aa

Browse files
authored
gh-120754: Fix memory leak in FileIO.__init__() (#124225)
Free 'self->stat_atopen' before assigning it, since io.FileIO.__init__() can be called multiple times manually (especially by test_io).
1 parent ea7fe1f commit 43cd7aa

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Modules/_io/fileio.c

Lines changed: 1 addition & 0 deletions

0 commit comments

Comments
 (0)