iio: fix memory leak in iiodeviceregister_eventset()
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 5de3add7509c95685f1185683b817dd206c4b1f1, it was introduced in version v5.13 by commit 32f171724e5cbecc80594fb6eced057cfdd6eb6f. For more details please see the references link.