X-Git-Url: https://sigrok.org/gitweb/?p=sigrok-cli.git;a=blobdiff_plain;f=show.c;h=e3e9c825758e5f548baa1b7f77a71f9bbb14bb64;hp=08abf6c184a00f516cd5d5a07b8c8f4d55145a12;hb=b4eece7c5f666690fdbe1923cd3bdc7cf9425d98;hpb=9216694f9278c653c2567074d3d0546d62390ca3 diff --git a/show.c b/show.c index 08abf6c..e3e9c82 100644 --- a/show.c +++ b/show.c @@ -224,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) { @@ -543,7 +544,6 @@ void show_dev_detail(void) g_variant_unref(gvar_opts); sr_dev_close(sdi); - g_slist_free(devices); }