[sr-dev] git:4.4:64a8927b: dialog: no need to release the dialog when refreshing cseq

Daniel-Constantin Mierla miconda at gmail.com
Thu Sep 29 09:23:30 CEST 2016


Module: kamailio
Branch: 4.4
Commit: 64a8927bd1f891c757a44fd31265ba4cd3a3d150
URL: https://github.com/kamailio/kamailio/commit/64a8927bd1f891c757a44fd31265ba4cd3a3d150

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2016-09-29T09:22:45+02:00

dialog: no need to release the dialog when refreshing cseq

- no direct reference was triggered inside the function

(cherry picked from commit 3f9969d1790dd8d9349c0fa450c589f8038c43cc)

---

Modified: modules/dialog/dlg_cseq.c

---

Diff:  https://github.com/kamailio/kamailio/commit/64a8927bd1f891c757a44fd31265ba4cd3a3d150.diff
Patch: https://github.com/kamailio/kamailio/commit/64a8927bd1f891c757a44fd31265ba4cd3a3d150.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