[PATCH AUTOSEL 5.8 47/72] regulator: fix memory leak on error path of regulator_register()