Message ID | 20200721194724.230809-1-brian.gix@intel.com (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
Series | [BlueZ] mesh: Fix memory leak on provisioning timeout | expand |
diff --git a/mesh/prov-acceptor.c b/mesh/prov-acceptor.c index 5231616ee..96f7e15ad 100644 --- a/mesh/prov-acceptor.c +++ b/mesh/prov-acceptor.c @@ -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) {