summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2018-02-07 12:38:20 +0100
committerJosé Bollo <jose.bollo@iot.bzh>2018-02-09 17:26:05 +0100
commiteff6f2d1b918186a96d44a225e0bcb4ea2ad7be6 (patch)
tree3f542862c545a29f78f1c028078134d2773e1a7d
parent350f165da982685f2ea7c6d0899e9711b2c35982 (diff)
afb-stub-ws: Fix a session leak bug
Change-Id: I55b72d7a4e7ca18e61addb3b0efa2ec75729060b Signed-off-by: José Bollo <jose.bollo@iot.bzh>
-rw-r--r--src/afb-stub-ws.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/afb-stub-ws.c b/src/afb-stub-ws.c
index 740a8575..48ce9e0a 100644
--- a/src/afb-stub-ws.c
+++ b/src/afb-stub-ws.c
@@ -485,7 +485,7 @@ static void record_session(struct afb_stub_ws *stubws, struct afb_session *sessi
prv = &s->next;
else {
*prv = s->next;
- afb_session_addref(s->session);
+ afb_session_unref(s->session);
free(s);
}
}