From 6184bbe3cc29f28e8167226b32b82df5edd9c511 Mon Sep 17 00:00:00 2001 From: Sebastian Reimers Date: Sun, 18 Aug 2024 20:52:16 +0200 Subject: [PATCH] deref reply before session --- src/sipsess/reply.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sipsess/reply.c b/src/sipsess/reply.c index ae9f29ce6..dad7f3b70 100644 --- a/src/sipsess/reply.c +++ b/src/sipsess/reply.c @@ -66,7 +66,8 @@ static void tmr_handler(void *arg) } } else { - mem_deref(sess); /* list_flush derefs reply */ + mem_deref(reply); + mem_deref(sess); return; }