gpio: use g_free instead of free 34/262834/1 accepted/tizen/unified/20210824.123804 submit/tizen/20210820.100048
authorAdrian Szyndela <adrian.s@samsung.com>
Fri, 20 Aug 2021 09:40:36 +0000 (11:40 +0200)
committerAdrian Szyndela <adrian.s@samsung.com>
Fri, 20 Aug 2021 09:40:36 +0000 (11:40 +0200)
Use g_free instead of free for data allocated by glib.

Change-Id: I7f5743e741a838c9e8ce32a2bbb3152cd88db4e0

src/peripheral_gpio_modern_api.c

index d3d07cb..d63c60d 100644 (file)
@@ -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