X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fhameg-hmo%2Fapi.c;h=89042da7a4b5adda5c399ed78ca0046f8c04508c;hb=7b365c47198890da8541a6daf04697c7c7ac88d4;hp=7bd0b8b4cc8bc12bbcd89778acabd147cbb66a0f;hpb=4bf93988023b2428129c8145ef9ea7121400f195;p=libsigrok.git diff --git a/src/hardware/hameg-hmo/api.c b/src/hardware/hameg-hmo/api.c index 7bd0b8b4..89042da7 100644 --- a/src/hardware/hameg-hmo/api.c +++ b/src/hardware/hameg-hmo/api.c @@ -98,8 +98,7 @@ static struct sr_dev_inst *hmo_probe_serial_device(struct sr_scpi_dev_inst *scpi return sdi; fail: - if (hw_info) - sr_scpi_hw_info_free(hw_info); + sr_scpi_hw_info_free(hw_info); sr_dev_inst_free(sdi); g_free(devc);