ima: Fix potential memory leak in imainitcrypto()
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.56 by commit 601ae26aa2802a4c10c94d7388a99eabdbefab2b, it was introduced in version v5.8 by commit 6d94809af6b0830c4dfcad661535a5939bcb8a7d. For more details please see the references link.