From 01f1db235be92988e0912a0b810117c856ca3e0d Mon Sep 17 00:00:00 2001 From: Szymon Jastrzebski Date: Mon, 5 Dec 2016 10:24:25 +0100 Subject: [PATCH] [Bluetooth] Fixed memory leak [Verification] TCT test passed Change-Id: I5f790d94aca1a2767f7d3596afece3759362eeb5 Signed-off-by: Szymon Jastrzebski --- src/bluetooth/bluetooth_adapter.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bluetooth/bluetooth_adapter.cc b/src/bluetooth/bluetooth_adapter.cc index 396211dc..dd306617 100755 --- a/src/bluetooth/bluetooth_adapter.cc +++ b/src/bluetooth/bluetooth_adapter.cc @@ -736,6 +736,7 @@ void BluetoothAdapter::SetVisible(const picojson::value& data, picojson::object& } else { *p_ret = LogAndCreateResult(ErrorCode::UNKNOWN_ERR, "app control setVisible failed"); } + free(result); }, t_param); if (err != APP_CONTROL_ERROR_NONE) { -- 2.34.1