[PATCH 6.12 082/826] thermal/lib: Fix memory leak on error in thermal_genl_auto()