X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Finput%2Fbinary.c;h=f58af58d16ac1d35e649a1db7761a0cf3fe495ec;hb=00b2a092c3e4b0ab9a12b44a50c6b271f4cf71f8;hp=736e4cf24e043133161be90c9bf4735716d06f98;hpb=6ec6c43b4738dbc7091f4a49a4ec80ea6102cb52;p=libsigrok.git diff --git a/src/input/binary.c b/src/input/binary.c index 736e4cf2..f58af58d 100644 --- a/src/input/binary.c +++ b/src/input/binary.c @@ -83,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); } @@ -150,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));