Module: kamailio
Branch: master
Commit: a63d88da87c70567a7e5303607d0a336ded9d74f
URL:
https://github.com/kamailio/kamailio/commit/a63d88da87c70567a7e5303607d0a33…
Author: Carsten Bock <carsten(a)ng-voice.com>
Committer: Carsten Bock <carsten(a)ng-voice.com>
Date: 2017-01-12T14:44:03+01:00
IMS-Dialog: Fix Ref-Counter
---
Modified: src/modules/ims_dialog/dlg_handlers.c
---
Diff:
https://github.com/kamailio/kamailio/commit/a63d88da87c70567a7e5303607d0a33…
Patch:
https://github.com/kamailio/kamailio/commit/a63d88da87c70567a7e5303607d0a33…
---
diff --git a/src/modules/ims_dialog/dlg_handlers.c
b/src/modules/ims_dialog/dlg_handlers.c
index 6262131..ea356aa 100644
--- a/src/modules/ims_dialog/dlg_handlers.c
+++ b/src/modules/ims_dialog/dlg_handlers.c
@@ -1601,6 +1601,10 @@ int dlg_new_dialog(struct sip_msg *req, struct cell *t, const int
run_initial_cb
// get_dlg has incremented the ref count by 1
dlg_release(dlg);
}
+ } else {
+ // get_dlg has incremented the ref count by 1
+ if (dlg)
+ dlg_release(dlg);
}
spiral_detected = 0;