X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Flcr%2Fes51919.c;h=3a987c626928c1a62b1953077713383fa18b5bf0;hb=d05b1a860606e078eed77722d8a0c62850ee39af;hp=b80a26c52868c42e559d49f8092e092693d76ad5;hpb=6b7e644e5c5ca8fd501303a812293a00d830cd32;p=libsigrok.git diff --git a/src/lcr/es51919.c b/src/lcr/es51919.c index b80a26c5..3a987c62 100644 --- a/src/lcr/es51919.c +++ b/src/lcr/es51919.c @@ -799,10 +799,8 @@ SR_PRIV struct sr_dev_inst *es51919_serial_scan(GSList *options, scan_cleanup: es51919_serial_clean(devc); - if (sdi) - sr_dev_inst_free(sdi); - if (serial) - sr_serial_dev_inst_free(serial); + sr_dev_inst_free(sdi); + sr_serial_dev_inst_free(serial); return NULL; }