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 v6.0.3 by commit b6054b9b239a493672f853b034570cca93ba7a88, it was introduced in version v5.15 by commit de0534df93474f268486c486ea7e01b44a478026. For more details please see the references link.