Skip to content

[RF] Fix various memory leaks caused by not deleting return values#22663

Merged
guitargeek merged 1 commit into
root-project:masterfrom
guitargeek:roofit_memory
Jun 19, 2026
Merged

[RF] Fix various memory leaks caused by not deleting return values#22663
guitargeek merged 1 commit into
root-project:masterfrom
guitargeek:roofit_memory

Conversation

@guitargeek

Copy link
Copy Markdown
Contributor

Fix various memory leaks from cases where functions that return an owned return value were used without deleting the return value.

This is addressed by using std::unique_ptr.

Fix various memory leaks from cases where functions that return an owned
return value were used without deleting the return value.

This is addressed by using `std::unique_ptr`.
@github-actions

Copy link
Copy Markdown

Test Results

    21 files      21 suites   3d 7h 16m 59s ⏱️
 3 866 tests  3 866 ✅ 0 💤 0 ❌
72 616 runs  72 616 ✅ 0 💤 0 ❌

Results for commit c74131f.

@lmoneta lmoneta left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thank you for fixing these memory leaks!

@guitargeek guitargeek merged commit 2b876bb into root-project:master Jun 19, 2026
33 of 37 checks passed
@guitargeek guitargeek deleted the roofit_memory branch June 19, 2026 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants