projects
/
platform
/
upstream
/
bluez.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
366ad61
)
mesh: Destroy PB-ADV queue when provisioning done
26/235126/1
accepted/tizen/unified/20200605.020515
submit/tizen/20200604.003952
author
Brian Gix
<brian.gix@intel.com>
Fri, 22 May 2020 21:07:52 +0000
(14:07 -0700)
committer
Abhay Agarwal
<ay.agarwal@samsung.com>
Thu, 28 May 2020 11:27:22 +0000
(16:57 +0530)
Change-Id: I4468a47480bf7653e90d9396627a63acf16f367f
Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
mesh/pb-adv.c
patch
|
blob
|
history
diff --git
a/mesh/pb-adv.c
b/mesh/pb-adv.c
index
6ef45b8
..
e54a615
100644
(file)
--- a/
mesh/pb-adv.c
+++ b/
mesh/pb-adv.c
@@
-572,4
+572,9
@@
void pb_adv_unreg(void *user_data)
send_close_ind(session, 0);
l_queue_remove(pb_sessions, session);
l_free(session);
+
+ if (!l_queue_length(pb_sessions)) {
+ l_queue_destroy(pb_sessions, l_free);
+ pb_sessions = NULL;
+ }
}