Skip to content

fixed a memory leak that caused the pe file to be access locked.#386

Merged
erocarrera merged 1 commit intoerocarrera:masterfrom
daniel-mekuria:fix_access_lock_on_pe_file
Jan 11, 2024
Merged

fixed a memory leak that caused the pe file to be access locked.#386
erocarrera merged 1 commit intoerocarrera:masterfrom
daniel-mekuria:fix_access_lock_on_pe_file

Conversation

@daniel-mekuria
Copy link
Copy Markdown
Contributor

@daniel-mekuria daniel-mekuria commented Nov 28, 2023

this fixes an issue similar to #356 that exists when using with python312 and 311, I didn't test with other versions.
couldn't find where the leak is, so gc.collect() from the gc module is used at the end of the _close_data() function to clear all unreachable and uncollected memory and release the file access lock.

@daniel-mekuria daniel-mekuria marked this pull request as ready for review November 28, 2023 17:16
@erocarrera erocarrera merged commit d0eae2a into erocarrera:master Jan 11, 2024
@erocarrera
Copy link
Copy Markdown
Owner

Thanks!, I've checked and this change frees plenty of unreachable objects upon close.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants