ARM-software / bsa-acs

Arm SystemReady : BSA Architecture Compliance Suite
Apache License 2.0
16 stars 42 forks source link

Allow ACS to support fixed offset translation scheme #158

Closed gowthamsiddarthd closed 1 year ago

gowthamsiddarthd commented 1 year ago
marcjones-ampere commented 1 year ago

@gowthamsiddarthd, Sorry that this comment is late. I just got a chance to review this change. The change works, but I think that there is a memory leak. The handle buffer is never freed. Each HandleBuffer needs a FreePool (HandleBuffer); See: https://github.com/tianocore-docs/edk2-UefiDriverWritersGuide/blob/master/5_uefi_services/51_services_that_uefi_drivers_commonly_use/513_handle_database_and_protocol_services.md#5132-locatehandlebuffer

It looks like this might be an issue in some other functions that use HandleBuffer in the codebase.

chetan-rathore commented 1 year ago

Hi @marcjones-ampere,

We have handled the memory leak issue. Kindly review the code: https://github.com/ARM-software/bsa-acs/pull/163

Thanks, ACS team