[sr-dev] git:master:a63d88da: IMS-Dialog: Fix Ref-Counter
Carsten Bock
carsten at ng-voice.com
Thu Jan 12 14:44:19 CET 2017
Module: kamailio
Branch: master
Commit: a63d88da87c70567a7e5303607d0a336ded9d74f
URL: https://github.com/kamailio/kamailio/commit/a63d88da87c70567a7e5303607d0a336ded9d74f
Author: Carsten Bock <carsten at ng-voice.com>
Committer: Carsten Bock <carsten at 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/a63d88da87c70567a7e5303607d0a336ded9d74f.diff
Patch: https://github.com/kamailio/kamailio/commit/a63d88da87c70567a7e5303607d0a336ded9d74f.patch
---
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;
More information about the sr-dev
mailing list