[PATCH] nvmem: core: Fix memleak in nvmem_register()