summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorAmarjeet <amarjeet@intel.com>2026-06-20 17:56:37 +0530
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2026-07-22 17:43:55 +0200
commitc010e13b470463928d91a75f51c99b63096d0f42 (patch)
tree33d591e85bad22303a32c5982f45ab51fcf8bf93 /tools/perf/scripts/python
parent1590cf0329716306e948a8fc29f1d3ee87d3989f (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')
0 files changed, 0 insertions, 0 deletions