[PATCH 5.7 044/393] regulator: fix memory leak on error path of regulator_register()