From: Deokhyun Kim Date: Thu, 29 Jun 2017 01:26:45 +0000 (+0900) Subject: Fix SVace issue. X-Git-Tag: submit/tizen_3.0/20170716.235230~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fe3afa2cefc231aed90d86240aa4769ba1ba1d65;p=platform%2Fcore%2Fapi%2Fbluetooth.git Fix SVace issue. Change-Id: I25f17d7014f512f4c52161345260cb88d1bb11ae --- diff --git a/src/bluetooth-audio.c b/src/bluetooth-audio.c index c7036aa..f3d0e35 100644 --- a/src/bluetooth-audio.c +++ b/src/bluetooth-audio.c @@ -752,10 +752,9 @@ int bt_ag_switch_headset(const char *remote_addr) BT_CHECK_AG_INIT_STATUS(); BT_CHECK_INPUT_PARAMETER(remote_addr); - char *addr = g_strdup(remote_addr); - BT_INFO("Remote address = %s", addr); + BT_INFO("Remote address = %s", remote_addr); - error = bluetooth_telephony_set_active_headset(addr); + error = bluetooth_telephony_set_active_headset(remote_addr); error = _bt_get_error_code(error); if (error != BT_ERROR_NONE)