[PATCH 6.11 128/817] thermal/lib: Fix memory leak on error in thermal_genl_auto()