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