From cbdd2a1005a407936eba09a22ab3e2bb464ae26b Mon Sep 17 00:00:00 2001 From: Benjamin Reis Date: Thu, 29 Mar 2018 11:00:48 +0200 Subject: [PATCH] avoid double free --- coreapi/callbacks.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/coreapi/callbacks.c b/coreapi/callbacks.c index c8ac44916..81a768c25 100644 --- a/coreapi/callbacks.c +++ b/coreapi/callbacks.c @@ -606,10 +606,9 @@ static void notify(SalSubscribeOp *op, SalSubscribeStatus st, const char *eventn } { LinphoneContent *ct=linphone_content_from_sal_body_handler(body_handler); - if (ct) { + if (ct) linphone_core_notify_notify_received(lc,lev,eventname,ct); - linphone_content_unref(ct); - } + } if (out_of_dialog){ /*out of dialog NOTIFY do not create an implicit subscription*/