From ae553563f939a1bdef1d57572b09e3d60ef8ccc6 Mon Sep 17 00:00:00 2001 From: Anuj Bhumiya Date: Fri, 30 Jul 2021 09:21:23 +0530 Subject: [PATCH] Native TCT fix for HDP 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 --- src/bluetooth-hdp.c | 1 - 1 file changed, 1 deletion(-) 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; -- 2.34.1