diff options
| author | Amarjeet <amarjeet@intel.com> | 2026-06-20 17:56:37 +0530 |
|---|---|---|
| committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2026-07-22 17:43:55 +0200 |
| commit | c010e13b470463928d91a75f51c99b63096d0f42 (patch) | |
| tree | 33d591e85bad22303a32c5982f45ab51fcf8bf93 /tools/perf/scripts/python/stackcollapse.py | |
| parent | 1590cf0329716306e948a8fc29f1d3ee87d3989f (diff) | |
tools/thermal/thermometer: close fd on realloc() failure
thermometer_add_tz() opens tz_path and then reallocates thermometer->tz.
If realloc fails, the function returns without closing fd.
Close fd before returning on realloc failure to avoid leaking a file descriptor.
Signed-off-by: Amarjeet <amarjeet@intel.com>
Link: https://patch.msgid.link/20260620122637.1334927-1-amarjeet@intel.com
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
