summaryrefslogtreecommitdiffstats
path: root/hcid/adapter.c
diff options
context:
space:
mode:
Diffstat (limited to 'hcid/adapter.c')
-rw-r--r--hcid/adapter.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/hcid/adapter.c b/hcid/adapter.c
index b82623d6..d5bed46c 100644
--- a/hcid/adapter.c
+++ b/hcid/adapter.c
@@ -2581,3 +2581,14 @@ const gchar *adapter_get_address(struct adapter *adapter)
return adapter->address;
}
+
+void adapter_free(struct adapter *adapter)
+{
+ if (!adapter)
+ return;
+
+ g_free(adapter->path);
+ g_free(adapter);
+
+ return;
+}