From: poljar (Damir Jelić) Date: Tue, 19 Nov 2013 00:08:18 +0000 (+0100) Subject: device: Fix leak if probe groups are created. X-Git-Tag: libsigrok-0.3.0~554 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=90c7f4e92d020a50b17bb64484209b6e5805003b;p=libsigrok.git device: Fix leak if probe groups are created. --- diff --git a/device.c b/device.c index 55be3254..cf2fd878 100644 --- 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);