From eff6f2d1b918186a96d44a225e0bcb4ea2ad7be6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Bollo?= Date: Wed, 7 Feb 2018 12:38:20 +0100 Subject: [PATCH] afb-stub-ws: Fix a session leak bug MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Change-Id: I55b72d7a4e7ca18e61addb3b0efa2ec75729060b Signed-off-by: José Bollo --- src/afb-stub-ws.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } } -- 2.16.6