X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fkecheng-kc-330b%2Fapi.c;h=60b1164d4f8fa5ffd739f1dd48ca841885d86a44;hb=e4204b1757459a03c0a70849a659f27387edc295;hp=2836840446d0842dc433af475da8849fcc1503f6;hpb=8686b747cd40695c36f998603f6e853ee5eea883;p=libsigrok.git diff --git a/src/hardware/kecheng-kc-330b/api.c b/src/hardware/kecheng-kc-330b/api.c index 28368404..60b1164d 100644 --- a/src/hardware/kecheng-kc-330b/api.c +++ b/src/hardware/kecheng-kc-330b/api.c @@ -371,7 +371,8 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi) packet.payload = &meta; meta.config = g_slist_append(NULL, src); sr_session_send(sdi, &packet); - g_free(src); + g_slist_free(meta.config); + sr_config_free(src); } if (!(devc->xfer = libusb_alloc_transfer(0)))