mesh: Fix memory leak on provisioning timeout
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
@@ -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