projects
/
platform
/
upstream
/
bluez.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc101ac
)
adapter: Fix warning when exit
author
Luiz Augusto von Dentz
<luiz.von.dentz@intel.com>
Tue, 17 Aug 2021 00:51:39 +0000
(17:51 -0700)
committer
Ayush Garg
<ayush.garg@samsung.com>
Fri, 11 Mar 2022 13:38:36 +0000
(19:08 +0530)
g_hash_table_destroy prints a warning when it is NULL so this checks if
adapter->allowed_uuid_set has actually been set.
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
src/adapter.c
patch
|
blob
|
history
diff --git
a/src/adapter.c
b/src/adapter.c
index
76708f5
..
af32848
100644
(file)
--- a/
src/adapter.c
+++ b/
src/adapter.c
@@
-10496,7
+10496,10
@@
static void adapter_free(gpointer user_data)
g_free(adapter->stored_alias);
g_free(adapter->current_alias);
free(adapter->modalias);
- g_hash_table_destroy(adapter->allowed_uuid_set);
+
+ if (adapter->allowed_uuid_set)
+ g_hash_table_destroy(adapter->allowed_uuid_set);
+
g_free(adapter);
}