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

Skip to content
Commit a6f41428 authored by Jared Duke's avatar Jared Duke
Browse files

Ensure address-related JNI allocations are released

The Bluetooth AdapterService JNI layer relies heavily on 6-byte
address arrays. These are mapped from Java arrays via
GetByteArrayElements, but in several instances, the allocated result
is not explicitly released with ReleaseByteArrayElements.

As an initial fix, patch these callsites with the appropriate release
call. A follow-up change will refactor the way these addresses are
converted, switching instead to the lighter weight GetByteArrayRegion
alternative, avoiding allocations altogether.

Bug: 393431093
Test: m + presubmit
Flags: EXEMPT bugfix
Change-Id: Ie2cfa4304608bc13be82b0d280c3112839e56e36
parent f64f0834
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