From f3d98518d5058bb78d9f3a0cd6416c7ce7ea3f7f Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 16 Mar 2019 20:59:18 -0700 Subject: Bluetooth: don't free a resource created by new Found via LGTM.com Signed-off-by: Dirk Hohndel --- core/btdiscovery.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/btdiscovery.cpp') diff --git a/core/btdiscovery.cpp b/core/btdiscovery.cpp index 88d1cd588..3ef0273fe 100644 --- a/core/btdiscovery.cpp +++ b/core/btdiscovery.cpp @@ -159,7 +159,7 @@ BTDiscovery::~BTDiscovery() { m_instance = NULL; #if defined(BT_SUPPORT) - free(discoveryAgent); + delete discoveryAgent; #endif } -- cgit v1.2.3-70-g09d2