From: Uwe Hermann Date: Fri, 10 Feb 2012 23:38:48 +0000 (+0100) Subject: sr: asix: Change a free() to g_free() as it should be. X-Git-Tag: libsigrok-0.1.0~139 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=8c4b60039390eac40fe24c191e89edfd39eac8b8;p=libsigrok.git sr: asix: Change a free() to g_free() as it should be. This also fixes a compiler warning (on FreeBSD at least). --- diff --git a/hardware/asix-sigma/asix-sigma.c b/hardware/asix-sigma/asix-sigma.c index 1bddda43..2340044d 100644 --- a/hardware/asix-sigma/asix-sigma.c +++ b/hardware/asix-sigma/asix-sigma.c @@ -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);