Skip to content

Commit

Permalink
Add a comment for the gc.collect() line
Browse files Browse the repository at this point in the history
  • Loading branch information
erocarrera committed Jan 11, 2024
1 parent b20afc5 commit 4160aec
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pefile.py
Original file line number Diff line number Diff line change
Expand Up @@ -2964,6 +2964,7 @@ def _close_data(self):
):
self.__data__.close()
del self.__data__
# Run a full garbage collection to find unreachable objects and free them.
gc.collect()

def close(self):
Expand Down

0 comments on commit 4160aec

Please sign in to comment.