[PATCH 6.12 248/567] gpio: regmap: Fix memleak in error path in gpio_regmap_register()