From a8088c83dbf3463a9a9153fc3a1415a16f43c4de Mon Sep 17 00:00:00 2001 From: Benjamin Reis Date: Fri, 7 Jul 2017 15:01:26 +0200 Subject: [PATCH] Fix double free of a chat message --- coreapi/chat.c | 1 - 1 file changed, 1 deletion(-) diff --git a/coreapi/chat.c b/coreapi/chat.c index 5a471adb7..bf921ecb3 100644 --- a/coreapi/chat.c +++ b/coreapi/chat.c @@ -670,7 +670,6 @@ LinphoneReason linphone_core_message_received(LinphoneCore *lc, SalOp *op, const /* Check if this is a duplicate message */ if ((msg = linphone_chat_room_find_message_with_dir(cr, sal_op_get_call_id(op), LinphoneChatMessageIncoming))) { reason = lc->chat_deny_code; - linphone_chat_message_unref(msg); goto end; }