]> sigrok.org Git - libsigrok.git/commitdiff
hantek-dso: fix memory leak
authorDaniel Glöckner <redacted>
Sat, 22 Aug 2015 16:00:30 +0000 (18:00 +0200)
committerUwe Hermann <redacted>
Sun, 30 Aug 2015 16:53:21 +0000 (18:53 +0200)
This fixes bug #632.

src/hardware/hantek-dso/api.c

index ba4918d5d5b8b94e195bdf0e3b1c2fb59963c464..b871ddaf11c3f453757d13b16f05b0527dd39ff3 100644 (file)
@@ -758,6 +758,7 @@ static void send_chunk(struct sr_dev_inst *sdi, unsigned char *buf,
                }
        }
        sr_session_send(devc->cb_data, &packet);
+       g_free(analog.data);
 }
 
 /*