]> sigrok.org Git - libsigrok.git/blobdiff - session_driver.c
sr: don't free driver-specific per-device struct in drivers
[libsigrok.git] / session_driver.c
index 6002639ea24d62bf24e3b397ccdba80b0862eead..946676a42c669d1977cb86a0d90581d169743060 100644 (file)
@@ -162,11 +162,8 @@ static int hw_cleanup(void)
 {
        GSList *l;
 
-       /* TODO: Error handling. */
-
        for (l = device_instances; l; l = l->next)
                sr_dev_inst_free(l->data);
-
        g_slist_free(device_instances);
        device_instances = NULL;