X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Funi-t-ut32x%2Fapi.c;h=ce81b3cc792e32b4da3b9a9d97b35565c4f1761f;hb=5f8cf332a6b8d177090a92405907fc695f13db97;hp=21e5be7d1a8989134bff5c9ea0b7b4c1ebdabfe0;hpb=a89884c16c0ce6a00a5108c9e7c289dbc282f996;p=libsigrok.git diff --git a/src/hardware/uni-t-ut32x/api.c b/src/hardware/uni-t-ut32x/api.c index 21e5be7d..ce81b3cc 100644 --- a/src/hardware/uni-t-ut32x/api.c +++ b/src/hardware/uni-t-ut32x/api.c @@ -114,10 +114,6 @@ static GSList *scan(struct sr_dev_driver *di, GSList *options) } devices = g_slist_append(devices, sdi); - serial_close(serial); - if (!devices) - sr_serial_dev_inst_free(serial); - return std_scan_complete(di, devices); }