projects
/
platform
/
core
/
api
/
peripheral-io.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
384570f
)
gpio: use g_free instead of free
34/262834/1
accepted/tizen/unified/20210824.123804
submit/tizen/20210820.100048
author
Adrian Szyndela
<adrian.s@samsung.com>
Fri, 20 Aug 2021 09:40:36 +0000
(11:40 +0200)
committer
Adrian 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
patch
|
blob
|
history
diff --git
a/src/peripheral_gpio_modern_api.c
b/src/peripheral_gpio_modern_api.c
index
d3d07cb
..
d63c60d
100644
(file)
--- 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