Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove incref call from LRU_popitem #65

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

Oppen
Copy link

@Oppen Oppen commented Jun 26, 2024

The result object already gets its count increased inside LRU_peek_*_item, so doing it twice causes a memory leak.
Should fix #64

The `result` object already gets its count increased inside `LRU_peek_*_item`, so doing it twice causes a memory leak.
@Oppen Oppen changed the title Remove incref call from LRU_popiten Remove incref call from LRU_popitem Jun 26, 2024
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.

popitem leads to memory-leak
1 participant