diff options
| author | Lee Jones <lee.jones@linaro.org> | 2022-06-07 15:28:37 +0100 |
|---|---|---|
| committer | Michael Bestas <mkbestas@lineageos.org> | 2025-02-12 16:56:03 +0200 |
| commit | b1020cb6f270725a72fcbdcd0babe19652197a11 (patch) | |
| tree | 78311210fb1fde15fd810f1d6567419e1653294f /tools/perf/scripts/python/stackcollapse.py | |
| parent | cc5015dd2fb28840ddd002f5db33d88a27bc92c8 (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
