gpio: fix deallocator mismatch 72/262872/1
authorYoungjae Cho <y0.cho@samsung.com>
Mon, 23 Aug 2021 01:40:50 +0000 (18:40 -0700)
committerYoungjae Cho <y0.cho@samsung.com>
Mon, 23 Aug 2021 01:42:26 +0000 (18:42 -0700)
Change-Id: Ia613bf7bb89d566245bb22103067d3e69ce9190c
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
src/peripheral_gpio_modern_api.c

index d63c60d..6b59604 100644 (file)
@@ -75,7 +75,7 @@ GHashTable *gpio_modern_read_chip_to_base_config()
                g_autoptr(GError) gerror = NULL;
                gint base = g_key_file_get_integer(conf, groups[i], "base", &gerror);
                if (gerror != NULL) {
-                       free(name);
+                       g_free(name);
                        return NULL;
                }