From c58b40a24352d277216570756946f37313686798 Mon Sep 17 00:00:00 2001 From: Anderson Lizardo Date: Wed, 8 Feb 2012 16:04:17 -0400 Subject: [PATCH] mgmtops: Fix memory leak when parsing EIR --- plugins/mgmtops.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/mgmtops.c b/plugins/mgmtops.c index 5c6ff29a3..4424ec94a 100644 --- a/plugins/mgmtops.c +++ b/plugins/mgmtops.c @@ -447,6 +447,8 @@ static void mgmt_device_connected(int sk, uint16_t index, void *buf, size_t len) btd_event_conn_complete(&info->bdaddr, &ev->addr.bdaddr, mgmt_addr_type(ev->addr.type), eir_data.name, eir_data.dev_class); + + eir_data_free(&eir_data); } static void mgmt_device_disconnected(int sk, uint16_t index, void *buf, -- 2.47.3