X-Git-Url: https://sigrok.org/gitweb/?p=sigrok-cli.git;a=blobdiff_plain;f=show.c;h=e3e9c825758e5f548baa1b7f77a71f9bbb14bb64;hp=4cdf7049da05e51809ba1f4277560fac5b33b55d;hb=b4eece7c5f666690fdbe1923cd3bdc7cf9425d98;hpb=50c641aab7c4400393b7d2ab6be9267e3fa1eac7 diff --git a/show.c b/show.c index 4cdf704..e3e9c82 100644 --- a/show.c +++ b/show.c @@ -21,9 +21,6 @@ #include #include -extern gint opt_loglevel; -extern gchar *opt_pds; - static gint sort_inputs(gconstpointer a, gconstpointer b) { const struct sr_input_format *ia = a, *ib = b; @@ -227,6 +224,7 @@ void show_dev_detail(void) } sdi = devices->data; + g_slist_free(devices); print_dev_line(sdi); if (sr_dev_open(sdi) != SR_OK) { @@ -546,7 +544,6 @@ void show_dev_detail(void) g_variant_unref(gvar_opts); sr_dev_close(sdi); - g_slist_free(devices); }