Skip to contentSkip to conversation

mesh: Fix memory leak on provisioning timeout

PATCH New Brian Gix 1 participant 1 message Jul 21, 2020 Bluetooth drivers

lore
Share & tools
lore

Brian Gix

author
#0 lore raw

PATCH 1/1 mesh: Fix memory leak on provisioning timeout

If the Provision Acceptor times out without completing successfully, the timer it was using was never freed.

---
 mesh/prov-acceptor.c | 1 +
 1 file changed, 1 insertion(+)
mesh/prov-acceptor.c +1 -0
index 5231616ee..96f7e15ad 100644
@@ -143,6 +143,7 @@ static void prov_to(struct l_timeout *timeout, void *user_data)
 	if (rx_prov != prov)
 		return;
 
+	l_timeout_remove(prov->timeout);
 	prov->timeout = NULL;
 
 	if (prov->cmplt && prov->trans_tx) {
Signature · 1 line
2.25.4