diff options
author | Brian Gix <brian.gix@intel.com> | 2020-07-21 12:44:38 -0700 |
---|---|---|
committer | Brian Gix <brian.gix@intel.com> | 2020-07-23 11:58:58 -0700 |
commit | e9db825e99ac12b767fb73b2f05778e8e13cf752 (patch) | |
tree | 862b3162618d38b6324be0c9b270376b0e6464c3 /mesh/prov-acceptor.c | |
parent | 0fe6813888ad2c46b98ac4d40673273b68d79052 (diff) | |
download | bluez-e9db825e99ac12b767fb73b2f05778e8e13cf752.tar.gz |
mesh: Fix memory leak on provisioning timeout
If the Provision Acceptor times out without completing successfully, the
timer it was using was never freed.
Diffstat (limited to 'mesh/prov-acceptor.c')
-rw-r--r-- | mesh/prov-acceptor.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) { |