Code Review
/
src
/
app-framework-binder.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
abe1501
)
afb-stub-ws: Fix segfault on diconection
author
José Bollo
<jose.bollo@iot.bzh>
Tue, 13 Feb 2018 09:26:26 +0000
(10:26 +0100)
committer
José Bollo
<jose.bollo@iot.bzh>
Tue, 13 Feb 2018 09:56:14 +0000
(10:56 +0100)
Change-Id: I7826b86e4d4cc921b2daaca5c8dda0fd27faae10
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
src/afb-stub-ws.c
patch
|
blob
|
history
diff --git
a/src/afb-stub-ws.c
b/src/afb-stub-ws.c
index
a8af53c
..
036b494
100644
(file)
--- a/
src/afb-stub-ws.c
+++ b/
src/afb-stub-ws.c
@@
-709,7
+709,8
@@
void afb_stub_ws_unref(struct afb_stub_ws *stubws)
{
if (!__atomic_sub_fetch(&stubws->refcount, 1, __ATOMIC_RELAXED)) {
drop_all_events(stubws);
- afb_evt_listener_unref(stubws->listener);
+ if (stubws->listener)
+ afb_evt_listener_unref(stubws->listener);
release_sessions(stubws);
afb_proto_ws_unref(stubws->proto);
afb_cred_unref(stubws->cred);