From: Daniel Glöckner Date: Sat, 22 Aug 2015 16:00:30 +0000 (+0200) Subject: hantek-dso: fix memory leak X-Git-Tag: libsigrok-0.4.0~369 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=1e6b5b930340cc87e6c49e0563b289267ae00cb4;p=libsigrok.git hantek-dso: fix memory leak This fixes bug #632. --- diff --git a/src/hardware/hantek-dso/api.c b/src/hardware/hantek-dso/api.c index ba4918d5..b871ddaf 100644 --- a/src/hardware/hantek-dso/api.c +++ b/src/hardware/hantek-dso/api.c @@ -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); } /*