瀏覽代碼

dialog: completed previous commit for spiral handling

Daniel-Constantin Mierla 10 年之前
父節點
當前提交
b198b39010
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      modules/dialog/dlg_handlers.c

+ 3 - 1
modules/dialog/dlg_handlers.c

@@ -796,8 +796,10 @@ int dlg_new_dialog(sip_msg_t *req, struct cell *t, const int run_initial_cbs)
 	dlg = dlg_search(&callid, &ftag, &ttag, &dir);
 	if(dlg) {
 		if (detect_spirals) {
-			if (spiral_detected == 1)
+			if (spiral_detected == 1) {
+				dlg_hash_release(&callid);
 				return 0;
+			}
 
 			if ( dlg->state != DLG_STATE_DELETED ) {
 				LM_DBG("Callid '%.*s' found, must be a spiraled request\n",