[PATCH 5.15 047/530] nvmem: core: Fix memleak in nvmem_register()