]> sigrok.org Git - libsigrok.git/commitdiff
sr: asix: Change a free() to g_free() as it should be.
authorUwe Hermann <redacted>
Fri, 10 Feb 2012 23:38:48 +0000 (00:38 +0100)
committerUwe Hermann <redacted>
Fri, 10 Feb 2012 23:38:48 +0000 (00:38 +0100)
This also fixes a compiler warning (on FreeBSD at least).

hardware/asix-sigma/asix-sigma.c

index 1bddda43e44f75e621ddf50b57150d888ce1954c..2340044d813dad60dd52bbc791d2c60d66cb8237 100644 (file)
@@ -730,7 +730,7 @@ static void hw_cleanup(void)
        for (l = device_instances; l; l = l->next) {
                sdi = l->data;
                if (sdi->priv != NULL)
-                       free(sdi->priv);
+                       g_free(sdi->priv);
                sr_device_instance_free(sdi);
        }
        g_slist_free(device_instances);