aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorLee Jones <lee.jones@linaro.org>2022-06-07 15:28:37 +0100
committerMichael Bestas <mkbestas@lineageos.org>2025-02-12 16:56:03 +0200
commitb1020cb6f270725a72fcbdcd0babe19652197a11 (patch)
tree78311210fb1fde15fd810f1d6567419e1653294f /tools/perf/scripts/python/stackcollapse.py
parentcc5015dd2fb28840ddd002f5db33d88a27bc92c8 (diff)
ANDROID: android-verity: Prevent double-freeing metadata
If extract_metadata() fails, it will free metadata in its own error path, so it is safe to simply return the provided error value without worrying about resource handling/releasing. Moreover, if we simply return in extract_metadata()'s error path, we can assume the thread of execution will only make it down into the free_metadata: tag area sometime after extract_metadata()'s success, in which case metadata will need to be freed without question. Bug: 234030265 Signed-off-by: Lee Jones <lee.jones@linaro.org> Change-Id: I1bf42ff9ecef3eea26543526c6955d7823d45c43
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions