From: Adrian Szyndela Date: Fri, 20 Aug 2021 09:40:36 +0000 (+0200) Subject: gpio: use g_free instead of free X-Git-Tag: accepted/tizen/unified/20210824.123804^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6d5f83e52e9e5ad054246a374f0984a1288e77f0;p=platform%2Fcore%2Fapi%2Fperipheral-io.git gpio: use g_free instead of free Use g_free instead of free for data allocated by glib. Change-Id: I7f5743e741a838c9e8ce32a2bbb3152cd88db4e0 --- diff --git a/src/peripheral_gpio_modern_api.c b/src/peripheral_gpio_modern_api.c index d3d07cb..d63c60d 100644 --- a/src/peripheral_gpio_modern_api.c +++ b/src/peripheral_gpio_modern_api.c @@ -47,7 +47,7 @@ GHashTable *gpio_modern_read_chip_to_base_config() { - g_autoptr(GHashTable) tmp = g_hash_table_new_full(g_str_hash, g_str_equal, free, NULL); + g_autoptr(GHashTable) tmp = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, NULL); if (!tmp) { /* glib seems to use a malloc wrapper that aborts on * allocation failure, but as far as I can tell this