Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8892176f authored by Victor Chang's avatar Victor Chang
Browse files

Minimal fix for fixing Asan LeakSanitizer error

This is the best-effort fix for the LeakSanitizer error of reporting
leak of a flag_provider object.

The restriction is that `provider_` is `extern` and not `const` either.
External libraries mock the flag_provider_interface and injects an
instance. We can't easily make the actual flag_provider instance
function-local static. In this CL, the instance is still malloc-ed.

Flag: EXEMPT bugfix
Bug: 356201402
Test: atest aconfig.test
Test: m test-art-host-gtest-art_compiler_tests64 under asan build
Change-Id: I6330a6e5dc498924dee31571fadd0fec1d1620be
parent 41906d78
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment