Module: kamailio
Branch: master
Commit: 3f9969d1790dd8d9349c0fa450c589f8038c43cc
URL:
https://github.com/kamailio/kamailio/commit/3f9969d1790dd8d9349c0fa450c589f…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)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/3f9969d1790dd8d9349c0fa450c589f…
Patch:
https://github.com/kamailio/kamailio/commit/3f9969d1790dd8d9349c0fa450c589f…
---
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;
}