summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAGaliuzov <AGaliuzov@luxoft.com>2016-01-25 16:58:24 +0200
committerAGaliuzov <AGaliuzov@luxoft.com>2016-01-25 16:58:24 +0200
commit2df35bf96b0541929015744300043ab6ea9e49a5 (patch)
tree4431ff80bf9dfdb8983b16994fae3f7fde2a00e1
parent1f4bb5d91a73cbfd8dd2a4b3a7263ccaf814090a (diff)
parent36ba4ad62a5de51be4f1d3b02ac69b6e55dbb648 (diff)
downloadsdl_core-2df35bf96b0541929015744300043ab6ea9e49a5.tar.gz
Merge pull request #336 from smartdevicelink/hotfix/bt_device_scanner_leak
Fixes #314
-rw-r--r--src/components/transport_manager/src/bluetooth/bluetooth_device_scanner.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/components/transport_manager/src/bluetooth/bluetooth_device_scanner.cc b/src/components/transport_manager/src/bluetooth/bluetooth_device_scanner.cc
index 29be3cd219..c422d895d0 100644
--- a/src/components/transport_manager/src/bluetooth/bluetooth_device_scanner.cc
+++ b/src/components/transport_manager/src/bluetooth/bluetooth_device_scanner.cc
@@ -97,6 +97,7 @@ int FindPairedDevs(std::vector<bdaddr_t>* result) {
}
pclose(pipe);
LOG4CXX_TRACE(logger_, "exit with 0");
+ delete [] buffer;
return 0;
}
} // namespace