X-Git-Url: https://sigrok.org/gitweb/?p=sigrok-cli.git;a=blobdiff_plain;f=decode.c;h=4d584d73b87ea3439bbf744f68811f14d2d8c6ac;hp=09b43f93d3b48c4da38f90505c141ea8823c26a1;hb=23c40b60cd87f9779c6e99a99653f7c68682c852;hpb=f0f54487c6a146af523d6eb19fcce63422e3f0f1 diff --git a/decode.c b/decode.c index 09b43f9..4d584d7 100644 --- a/decode.c +++ b/decode.c @@ -17,11 +17,11 @@ * along with this program. If not, see . */ -#include "sigrok-cli.h" -#include "config.h" #include #include #include +#include "sigrok-cli.h" +#include "config.h" #ifdef HAVE_SRD static GHashTable *pd_ann_visible = NULL; @@ -198,8 +198,7 @@ int register_pds(const char *opt_pds, char *opt_pd_annotations) g_hash_table_destroy(options); if (channels) g_hash_table_destroy(channels); - if (pd_name) - g_free(pd_name); + g_free(pd_name); return ret; }