]> sigrok.org Git - libsigrok.git/commitdiff
ikalogic-scanaplus: Free device context to fix memory leak.
authorMarc Schink <redacted>
Wed, 20 Aug 2014 11:55:04 +0000 (13:55 +0200)
committerBert Vermeulen <redacted>
Wed, 20 Aug 2014 12:20:55 +0000 (14:20 +0200)
Best regards,
Marc

>From 779ef3a1150b3679ab357ceb0e2f50785ad90d28 Mon Sep 17 00:00:00 2001
From: Marc Schink <redacted>
Date: Wed, 20 Aug 2014 05:42:07 -0400
Subject: [PATCH] ikalogic-scanaplus: Free device context to fix memory leak.

src/hardware/ikalogic-scanaplus/api.c

index 3f8276305bbfcaa4688a0569b25ca459307c730f..ce00478eac1619da60f12365d63138cc06a42648 100644 (file)
@@ -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)