[PATCH 6.6 104/676] thermal/lib: Fix memory leak on error in thermal_genl_auto()