Browse code

b/f: fixed mem leak accumulating sip requests on failed auth

Stefan Sayer authored on 13/10/2011 10:17:22
Showing 1 changed files
... ...
@@ -210,7 +210,8 @@ bool UACAuth::onSipReply(const AmSipReply& reply, AmSipDialog::Status old_dlg_st
210 210
               ERROR("failed to send authenticated request.\n");
211 211
             }
212 212
 	  }
213
-	} 
213
+	}
214
+	sent_requests.erase(ri);
214 215
       }
215 216
   } else if (reply.code >= 200) {
216 217
     sent_requests.erase(reply.cseq); // now we dont need it any more