Module: sems Branch: master Commit: 0e20270c10482121114f9e7c293a073d266be6d4 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=0e20270c10482121114f9e7c293a073d266be6d4
Author: Stefan Sayer <[email protected]> Committer: Stefan Sayer <[email protected]> Date: Thu Oct 13 12:17:22 2011 +0200 b/f: fixed mem leak accumulating sip requests on failed auth --- core/plug-in/uac_auth/UACAuth.cpp | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/core/plug-in/uac_auth/UACAuth.cpp b/core/plug-in/uac_auth/UACAuth.cpp index 52dd8ed..0a14ed6 100644 --- a/core/plug-in/uac_auth/UACAuth.cpp +++ b/core/plug-in/uac_auth/UACAuth.cpp @@ -210,7 +210,8 @@ bool UACAuth::onSipReply(const AmSipReply& reply, AmSipDialog::Status old_dlg_st 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 _______________________________________________ Semsdev mailing list [email protected] http://lists.iptel.org/mailman/listinfo/semsdev
