[PATCH 6.1 085/772] thermal/lib: Fix memory leak on error in thermal_genl_auto()