[PATCH AUTOSEL 5.4 29/40] regulator: fix memory leak on error path of regulator_register()