[sr-dev] git:master:3f9969d1: dialog: no need to release the dialog when refreshing cseq

Daniel-Constantin Mierla miconda at gmail.com
Wed Sep 28 16:42:43 CEST 2016


Module: kamailio
Branch: master
Commit: 3f9969d1790dd8d9349c0fa450c589f8038c43cc
URL: https://github.com/kamailio/kamailio/commit/3f9969d1790dd8d9349c0fa450c589f8038c43cc

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2016-09-28T16:42:22+02:00

dialog: no need to release the dialog when refreshing cseq

- no direct reference was triggered inside the function

---

Modified: modules/dialog/dlg_cseq.c

---

Diff:  https://github.com/kamailio/kamailio/commit/3f9969d1790dd8d9349c0fa450c589f8038c43cc.diff
Patch: https://github.com/kamailio/kamailio/commit/3f9969d1790dd8d9349c0fa450c589f8038c43cc.patch

---

diff --git a/modules/dialog/dlg_cseq.c b/modules/dialog/dlg_cseq.c
index 7aaad02..4d60180 100644
--- a/modules/dialog/dlg_cseq.c
+++ b/modules/dialog/dlg_cseq.c
@@ -247,11 +247,9 @@ int dlg_cseq_refresh(sip_msg_t *msg, dlg_cell_t *dlg,
 	sr_hdr_add_zs(msg, "P-K-CSeq-Refresh", &nval);
 
 done:
-	if(dlg!=NULL) dlg_release(dlg);
 	return 0;
 
 error:
-	if(dlg!=NULL) dlg_release(dlg);
 	return -1;
 }
 




More information about the sr-dev mailing list