From 23694e99b4572d4c2b22f89857b6aaa442e8bee9 Mon Sep 17 00:00:00 2001 From: Stefan Sayer Date: Thu, 13 Oct 2011 12:17:22 +0200 Subject: [PATCH] b/f: fixed mem leak accumulating sip requests on failed auth --- core/plug-in/uac_auth/UACAuth.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/plug-in/uac_auth/UACAuth.cpp b/core/plug-in/uac_auth/UACAuth.cpp index ec9b5a8e..327b8f5e 100644 --- a/core/plug-in/uac_auth/UACAuth.cpp +++ b/core/plug-in/uac_auth/UACAuth.cpp @@ -206,7 +206,8 @@ bool UACAuth::onSipReply(const AmSipReply& reply, int old_dlg_status, const stri ERROR("failed to send authenticated request.\n"); } } - } + } + sent_requests.erase(ri); } } else if (reply.code >= 200) { sent_requests.erase(reply.cseq); // now we dont need it any more