device: Fix leak if probe groups are created.
This commit is contained in:
parent
1130e4229b
commit
90c7f4e92d
3
device.c
3
device.c
|
@ -265,6 +265,9 @@ SR_PRIV void sr_dev_inst_free(struct sr_dev_inst *sdi)
|
||||||
}
|
}
|
||||||
g_slist_free(sdi->probes);
|
g_slist_free(sdi->probes);
|
||||||
|
|
||||||
|
if (sdi->probe_groups)
|
||||||
|
g_slist_free(sdi->probe_groups);
|
||||||
|
|
||||||
g_free(sdi->vendor);
|
g_free(sdi->vendor);
|
||||||
g_free(sdi->model);
|
g_free(sdi->model);
|
||||||
g_free(sdi->version);
|
g_free(sdi->version);
|
||||||
|
|
Loading…
Reference in New Issue