summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnuj Bhumiya <anuj.bhumiya@samsung.com>2021-07-30 09:21:23 +0530
committerAnuj Bhumiya <anuj.bhumiya@samsung.com>2021-07-30 10:54:26 +0530
commitae553563f939a1bdef1d57572b09e3d60ef8ccc6 (patch)
treebb29982a7f80fcb8542c385ab4d33cae103d49fe
parent4b3788d0794b827e7062e0e6d0a8da9fecec7ae3 (diff)
downloadbluetooth-ae553563f939a1bdef1d57572b09e3d60ef8ccc6.tar.gz
bluetooth-ae553563f939a1bdef1d57572b09e3d60ef8ccc6.tar.bz2
bluetooth-ae553563f939a1bdef1d57572b09e3d60ef8ccc6.zip
The app handle is already freeing at the time of deregistration so no need to free it at registration time. Change-Id: I0fe1cf3a2f99dfae4e7a846f4b1aa6afb70b2aff Signed-off-by: Anuj Bhumiya <anuj.bhumiya@samsung.com>
-rw-r--r--src/bluetooth-hdp.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/bluetooth-hdp.c b/src/bluetooth-hdp.c
index dc6f18c..cefefa3 100644
--- a/src/bluetooth-hdp.c
+++ b/src/bluetooth-hdp.c
@@ -46,7 +46,6 @@ int bt_hdp_register_sink_app(unsigned short data_type, char **app_id)
}
*app_id = strdup(app_handle);
- g_free(app_handle);
if (*app_id == NULL)
return BT_ERROR_OUT_OF_MEMORY;