diff options
author | Nate Myren <ntmyren@google.com> | 2023-11-10 11:09:46 -0800 |
---|---|---|
committer | Nate Myren <ntmyren@google.com> | 2023-11-10 11:09:46 -0800 |
commit | 08b0a68d6d32cf91ccb9096fe567ab20b11ea723 (patch) | |
tree | 3c39983a13a537d787d0823efbcc7bc92ab573c5 /benchmarks | |
parent | 58df4dfe9a4eb4f0491c299570506a3c83f89e44 (diff) | |
download | bionic-08b0a68d6d32cf91ccb9096fe567ab20b11ea723.tar.gz |
Unmap appcompat properties in property benchmark
Otherwise, they'll leak and cause failures
Fixes: 305838406
Test: adb shell /data/benchmarktest/bionic-benchmarks/bionic-benchmarks --benchmark_filter=BM_property
Change-Id: I2d6ed4aa30012dd7aa92eed8dc564699e6505c8f
Diffstat (limited to 'benchmarks')
-rw-r--r-- | benchmarks/property_benchmark.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/benchmarks/property_benchmark.cpp b/benchmarks/property_benchmark.cpp index ff3618e5e..1b4ba2316 100644 --- a/benchmarks/property_benchmark.cpp +++ b/benchmarks/property_benchmark.cpp @@ -101,6 +101,9 @@ struct LocalPropertyTestState { } system_properties_.contexts_->FreeAndUnmap(); + if (system_properties_.appcompat_override_contexts_) { + system_properties_.appcompat_override_contexts_->FreeAndUnmap(); + } for (int i = 0; i < nprops; i++) { delete names[i]; |