return;
}
sdi = devices->data;
+ g_slist_free(devices);
if (sr_dev_open(sdi) != SR_OK) {
g_critical("Failed to open device.");
set_dev_options(sdi, devargs);
sr_dev_close(sdi);
- g_slist_free(devices);
g_hash_table_destroy(devargs);
}
}
if (g_slist_length(devices) > 1) {
g_critical("sigrok-cli only supports one device for capturing.");
+ g_slist_free(devices);
return;
}
sdi = devices->data;
+ g_slist_free(devices);
sr_session_new(&session);
sr_session_datafeed_callback_add(session, datafeed_in, NULL);
sr_session_datafeed_callback_remove_all(session);
sr_session_destroy(session);
- g_slist_free(devices);
}