[PATCH 5.15 355/667] thermal/core: Fix memory leak in __thermal_cooling_device_register()