Skip to content

Fix memory leak in TRestRun::CloseFile#562

Open
cmargalejo wants to merge 1 commit into
masterfrom
cris_fix_restrun_memory_leak
Open

Fix memory leak in TRestRun::CloseFile#562
cmargalejo wants to merge 1 commit into
masterfrom
cris_fix_restrun_memory_leak

Conversation

@cmargalejo

@cmargalejo cmargalejo commented Apr 16, 2026

Copy link
Copy Markdown
Member

cmargalejo Ok: 2 Powered by Pull Request Badge

Delete fInputEvent when closing the file to prevent a memory leak. Each call to CloseFile() was leaking the input event object,causing growing memory use when opening or closing multiple files.

Fixes issue #519

Delete fInputEvent when closing the file to prevent a memory leak. Each call to CloseFile() was leaking the input event object,causing growing memory use when opening or closing multiple files.

Fixes #519
@cmargalejo

Copy link
Copy Markdown
Member Author

@AlvaroEzq, @lobis, @hgmaluenda, @juanangp , small ping on this PR. We want to get a new stable REST release ready, and this is one of the PRs still waiting for review. Could you have a look when you get a chance?

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