]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/norma-dmm/api.c
configure.ac: Emit a warning if the C++ bindings are not being built.
[libsigrok.git] / src / hardware / norma-dmm / api.c
index 86cbd9c3d2203bd7733a7559e6a4ae2c1508d858..d155bc36d657b3b24f5f0817ae81caf5caa9e8b2 100644 (file)
@@ -110,6 +110,7 @@ static GSList *scan(struct sr_dev_driver *drv, GSList *options)
                if (serial_write_blocking(serial, req, strlen(req),
                                serial_timeout(serial, strlen(req))) < 0) {
                        sr_err("Unable to send identification request.");
+                       g_free(buf);
                        return NULL;
                }
                len = BUF_MAX;