[PATCH 6.18 382/430] gpio: regmap: Fix memleak in error path in gpio_regmap_register()