[PATCH 6.1 0476/1146] regulator: core: fix resource leak in regulator_register()