nvmem: core: Fix memleak in nvmem_register()
This is an automated ID intended to aid in discovery of potential security vulnerabilities. The actual impact and attack plausibility have not yet been proven. This ID is fixed in Linux Kernel version v5.15.75 by commit 9391cc3a787a58aa224a6440d7f244d780ba2896, it was introduced in version v5.15 by commit de0534df93474f268486c486ea7e01b44a478026. For more details please see the references link.