Native TCT fix for HDP 83/261983/3 accepted/tizen/unified/20210802.135804 submit/tizen/20210730.080510
authorAnuj Bhumiya <anuj.bhumiya@samsung.com>
Fri, 30 Jul 2021 03:51:23 +0000 (09:21 +0530)
committerAnuj Bhumiya <anuj.bhumiya@samsung.com>
Fri, 30 Jul 2021 05:24:26 +0000 (10:54 +0530)
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>
src/bluetooth-hdp.c

index dc6f18c..cefefa3 100644 (file)
@@ -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;