iio: fix memory leak in iio_device_register_eventset()