From 8764c4dc01e117f4faf6095dadcb17c2a3c0da3c Mon Sep 17 00:00:00 2001
From: Edric Milaret <edric.ladent-milaret@savoirfairelinux.com>
Date: Tue, 10 May 2016 15:05:20 -0400
Subject: [PATCH] fix double free in sipaccount

Callback is always executed so we always delete
struct ctx

Change-Id: If3e62ddae4ef9fd82c8a4d5c58c08f52256d0272
Tuleap: #668
---
 src/sip/sipaccount.cpp | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/sip/sipaccount.cpp b/src/sip/sipaccount.cpp
index 56c72f0345..0fab6b8436 100644
--- a/src/sip/sipaccount.cpp
+++ b/src/sip/sipaccount.cpp
@@ -2119,7 +2119,6 @@ SIPAccount::sendTextMessage(const std::string& to, const std::map<std::string, s
 
     if (status != PJ_SUCCESS) {
         RING_ERR("Unable to send request: %s", sip_utils::sip_strerror(status).c_str());
-        delete t;
         return;
     }
 }
-- 
GitLab