X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Finput%2Fbinary.c;h=f58af58d16ac1d35e649a1db7761a0cf3fe495ec;hb=00b2a092c3e4b0ab9a12b44a50c6b271f4cf71f8;hp=23b9574f8de9400bca91ff39755ecd015020c64b;hpb=c1aae90038456a61d0f9313d34e6107c3440d3e7;p=libsigrok.git diff --git a/src/input/binary.c b/src/input/binary.c index 23b9574f..f58af58d 100644 --- a/src/input/binary.c +++ b/src/input/binary.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include #include #include @@ -82,6 +83,7 @@ static int process_buffer(struct sr_input *in) src = sr_config_new(SR_CONF_SAMPLERATE, g_variant_new_uint64(inc->samplerate)); meta.config = g_slist_append(NULL, src); sr_session_send(in->sdi, &packet); + g_slist_free(meta.config); sr_config_free(src); } @@ -149,7 +151,7 @@ static struct sr_option options[] = { ALL_ZERO }; -static struct sr_option *get_options(void) +static const struct sr_option *get_options(void) { if (!options[0].def) { options[0].def = g_variant_ref_sink(g_variant_new_int32(DEFAULT_NUM_CHANNELS));