]> sigrok.org Git - libsigrok.git/commitdiff
device: Fix leak if probe groups are created.
authorpoljar (Damir Jelić) <redacted>
Tue, 19 Nov 2013 00:08:18 +0000 (01:08 +0100)
committerBert Vermeulen <redacted>
Tue, 19 Nov 2013 09:29:14 +0000 (10:29 +0100)
device.c

index 55be3254ba42b2e7c5658f03437b3ad1adf8da02..cf2fd8781dcdfeebd5a9d82daa04bc6599b0e5df 100644 (file)
--- a/device.c
+++ b/device.c
@@ -265,6 +265,9 @@ SR_PRIV void sr_dev_inst_free(struct sr_dev_inst *sdi)
        }
        g_slist_free(sdi->probes);
 
+       if (sdi->probe_groups)
+               g_slist_free(sdi->probe_groups);
+
        g_free(sdi->vendor);
        g_free(sdi->model);
        g_free(sdi->version);