Files
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 <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Rafael J. Wysocki <[email protected]>
2026-07-22 17:43:55 +02:00
..
2025-02-18 16:27:43 -03:00
…