linux/tools/thermal
Amarjeet c010e13b47 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>
2026-07-22 17:43:55 +02:00
..
lib tools: Remove redundant quiet setup 2025-02-18 16:27:43 -03:00
thermal-engine tools/thermal/thermal-engine: Fix format string bug in thermal-engine 2025-11-25 11:00:28 +01:00
thermometer tools/thermal/thermometer: close fd on realloc() failure 2026-07-22 17:43:55 +02:00
tmon tools/thermal/tmon: Fix compilation warning for wrong format 2024-01-02 09:33:19 +01:00