Browse code

dialog: completed previous commit for spiral handling

Daniel-Constantin Mierla authored on 01/10/2015 14:08:13
Showing 1 changed files
... ...
@@ -796,8 +796,10 @@ int dlg_new_dialog(sip_msg_t *req, struct cell *t, const int run_initial_cbs)
796 796
 	dlg = dlg_search(&callid, &ftag, &ttag, &dir);
797 797
 	if(dlg) {
798 798
 		if (detect_spirals) {
799
-			if (spiral_detected == 1)
799
+			if (spiral_detected == 1) {
800
+				dlg_hash_release(&callid);
800 801
 				return 0;
802
+			}
801 803
 
802 804
 			if ( dlg->state != DLG_STATE_DELETED ) {
803 805
 				LM_DBG("Callid '%.*s' found, must be a spiraled request\n",