device: Fix leak if probe groups are created.

This commit is contained in:
poljar (Damir Jelić) 2013-11-19 01:08:18 +01:00 committed by Bert Vermeulen
parent 1130e4229b
commit 90c7f4e92d
1 changed files with 3 additions and 0 deletions

View File

@ -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);