[PATCH 5.4 034/270] regulator: fix memory leak on error path of regulator_register()