From: Marc Schink Date: Wed, 20 Aug 2014 11:55:04 +0000 (+0200) Subject: ikalogic-scanaplus: Free device context to fix memory leak. X-Git-Tag: libsigrok-0.4.0~1136 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=f817f05aaca16d0bb95ca1ade7b7e1941178fa68;p=libsigrok.git ikalogic-scanaplus: Free device context to fix memory leak. Best regards, Marc >From 779ef3a1150b3679ab357ceb0e2f50785ad90d28 Mon Sep 17 00:00:00 2001 From: Marc Schink Date: Wed, 20 Aug 2014 05:42:07 -0400 Subject: [PATCH] ikalogic-scanaplus: Free device context to fix memory leak. --- diff --git a/src/hardware/ikalogic-scanaplus/api.c b/src/hardware/ikalogic-scanaplus/api.c index 3f827630..ce00478e 100644 --- a/src/hardware/ikalogic-scanaplus/api.c +++ b/src/hardware/ikalogic-scanaplus/api.c @@ -59,6 +59,7 @@ static void clear_helper(void *priv) ftdi_free(devc->ftdic); g_free(devc->compressed_buf); g_free(devc->sample_buf); + g_free(devc); } static int dev_clear(void)