summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);
}
}