[PATCH 5.8 051/464] regulator: fix memory leak on error path of regulator_register()