rethook: fix a potential memleak in rethook_alloc()
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.10 by commit cbc5d1f9a8cc40ba2bc6779b36d2ea1f65bc027c, it was introduced in version v5.18 by commit 54ecbe6f1ed5138c895bdff55608cf502755b20e. For more details please see the references link.