Coverity Fixes in BTAPI and BTHAL
[platform/core/connectivity/bluetooth-frwk.git] / bt-oal / bluez_hal / src / bt-hal-a2dp-sink-dbus-handler.c
index 4f08b1b..a507a66 100644 (file)
@@ -127,6 +127,7 @@ bt_status_t _bt_hal_dbus_handler_a2dp_sink_connect(bt_bdaddr_t *bd_addr)
 
        if (ret != BT_HAL_ERROR_NONE) {
                ERR("_bt_hal_connect_profile(A2DP source) Error");
+               g_free(address);
                return BT_STATUS_FAIL;
        }