rtc: class: Fix potential memleak in devmrtcallocate_device()
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.16 by commit 0bcfc8fd3e596994f527b46730579428b3a4fa5f, it was introduced in version v5.16 by commit 24d23181e43d72ca692a479e70dfe5b0b5dd33f1. For more details please see the references link.