diff --git a/examples/iio-monitor.c b/examples/iio-monitor.c index 158ab6347..13dae9ac4 100644 --- a/examples/iio-monitor.c +++ b/examples/iio-monitor.c @@ -398,6 +398,8 @@ static void show_main_screen(struct iio_context *ctx) free(dev_names); destroyCDKScreen(screen); + return; + dev_name_err: for (i = 0; i < nb_devices; i++) { if (dev_names[i])