summaryrefslogtreecommitdiff
path: root/libs/androidfw/BackupHelpers.cpp
diff options
context:
space:
mode:
author Songchun Fan <schfan@google.com> 2024-03-06 11:42:24 -0800
committer Song Chun Fan <schfan@google.com> 2024-03-07 00:44:50 +0000
commitbae5a32b7d4c33d6241614d5acf10c826403c889 (patch)
tree0810dbd53faa8a1612983bd843940537c4e3aa5e /libs/androidfw/BackupHelpers.cpp
parentacca83b6c504242a551063a729885613c5a2bc14 (diff)
[SettingsProvider] always destroy old tracker before inserting a new one
Previously, the destroying of the old tracker and the insertion of the new tracker are in two separate synchronized blocks. This creates the opportunity of a race condition, where another tracker is inserted between the two synchronized blocks, and is never properly destroyed, which leads to memory leaks. This CL fixes that. BUG: 277448672 Test: builds; this is a theoretical fix as I couldn't reproduce the bug locally Change-Id: Ia0fbcee6f56dd1035e68d20f3730b4d34e2085b6
Diffstat (limited to 'libs/androidfw/BackupHelpers.cpp')
0 files changed, 0 insertions, 0 deletions