Linux-Bluetooth Archive on
 help / color / Atom feed
* [PATCH BlueZ] mesh: Fix memory leak on provisioning timeout
@ 2020-07-21 19:47 Brian Gix
  0 siblings, 0 replies; only message in thread
From: Brian Gix @ 2020-07-21 19:47 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: inga.stotland, brian.gix

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(+)

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)
+	l_timeout_remove(prov->timeout);
 	prov->timeout = NULL;
 	if (prov->cmplt && prov->trans_tx) {

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-21 19:47 [PATCH BlueZ] mesh: Fix memory leak on provisioning timeout Brian Gix

Linux-Bluetooth Archive on

Archives are clonable:
	git clone --mirror linux-bluetooth/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-bluetooth linux-bluetooth/ \
	public-inbox-index linux-bluetooth

Example config snippet for mirrors

Newsgroup available over NNTP:

AGPL code for this site: git clone