Bluetooth: don't free a resource created by new

Found via LGTM.com

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2019-03-16 20:59:18 -07:00
parent 87eb95d004
commit f3d98518d5

View file

@ -159,7 +159,7 @@ BTDiscovery::~BTDiscovery()
{
m_instance = NULL;
#if defined(BT_SUPPORT)
free(discoveryAgent);
delete discoveryAgent;
#endif
}