Skip to content

Conversation

@bdash
Copy link
Contributor

@bdash bdash commented Jul 30, 2025

BNRelocationHandlerDefaultApplyRelocation / BNRelocationHandlerApplyRelocation / BNRelocationHandlerGetOperandForExternalRelocation do not take ownership of the reference that is passed to them. Instead they take their own reference to the object. As a result, Relocation objects passed into RelocationHandler::ApplyRelocation / CoreRelocationHandler::ApplyRelocation / CoreRelocationHandler::GetOperandForExternalRelocation were being leaked.

@plafosse plafosse self-assigned this Aug 5, 2025
`BNRelocationHandlerDefaultApplyRelocation` /
`BNRelocationHandlerApplyRelocation` /
`BNRelocationHandlerGetOperandForExternalRelocation` do not take
ownership of the reference that is passed to them. Instead they take
their own reference to the object. As a result, `Relocation` objects
passed into `RelocationHandler::ApplyRelocation` /
`CoreRelocationHandler::ApplyRelocation` /
`CoreRelocationHandler::GetOperandForExternalRelocation` were being
leaked.
@bdash bdash force-pushed the relocation-leak branch from 22073bf to 073e04d Compare August 5, 2025 19:00
@bdash bdash merged commit 073e04d into dev Aug 5, 2025
5 checks passed
@bdash bdash deleted the relocation-leak branch August 5, 2025 19:03
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.

3 participants