Module: sip-router
Branch: master
Commit: 32f9c9187a9d886c46b24ee38173274da63febda
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=32f9c91…
Author: Hugh Waite <hugh(a)polybius.local>
Committer: Hugh Waite <hugh(a)polybius.local>
Date: Wed Dec 4 21:59:16 2013 +0000
dialog_ng: Fix segfault in dlg_new_dialog
---
modules/dialog_ng/dlg_handlers.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/dialog_ng/dlg_handlers.c b/modules/dialog_ng/dlg_handlers.c
index 262e923..93a00c7 100644
--- a/modules/dialog_ng/dlg_handlers.c
+++ b/modules/dialog_ng/dlg_handlers.c
@@ -905,9 +905,9 @@ int dlg_new_dialog(struct sip_msg *req, struct cell *t, const int
run_initial_cb
if (populate_leg_info(dlg, req, t, DLG_CALLER_LEG,
&(get_from(req)->tag_value)) != 0) {
LM_ERR("could not add further info to the dialog\n");
- shm_free(dlg);
lock_destroy(dlg->dlg_out_entries_lock);
lock_dealloc(dlg->dlg_out_entries_lock);
+ shm_free(dlg);
return -1;
}