Fix SVace issue. 54/136254/1
authorDeokhyun Kim <dukan.kim@samsung.com>
Thu, 29 Jun 2017 01:26:45 +0000 (10:26 +0900)
committerDeokhyun Kim <dukan.kim@samsung.com>
Thu, 29 Jun 2017 01:26:45 +0000 (10:26 +0900)
Change-Id: I25f17d7014f512f4c52161345260cb88d1bb11ae

src/bluetooth-audio.c

index c7036aab9cfb1258a2d4ba44a2f0f6b2c62ef38f..f3d0e357114183b3f0c14253aa01765a77228253 100644 (file)
@@ -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)