Module: kamailio
Branch: master
Commit: 3a345d8f3b0612c9bee4b29396f17a36472f215f
URL:
https://github.com/kamailio/kamailio/commit/3a345d8f3b0612c9bee4b29396f17a3…
Author: jaybeepee <jason.penton(a)gmail.com>
Committer: jaybeepee <jason.penton(a)gmail.com>
Date: 2015-12-02T15:17:05+02:00
modules/ims_charging: unref dlg after ref-counting lookup
---
Modified: modules/ims_charging/mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/3a345d8f3b0612c9bee4b29396f17a3…
Patch:
https://github.com/kamailio/kamailio/commit/3a345d8f3b0612c9bee4b29396f17a3…
---
diff --git a/modules/ims_charging/mod.c b/modules/ims_charging/mod.c
index 9dae820..e769a52 100644
--- a/modules/ims_charging/mod.c
+++ b/modules/ims_charging/mod.c
@@ -345,11 +345,13 @@ static int w_ro_set_session_id_avp(struct sip_msg *msg, char *str1,
char *str2)
ro_session= lookup_ro_session(dlg->h_entry, &dlg->callid, 0, 0);
if(!ro_session) {
LM_ERR("Unable to find Ro charging data\n");
+ dlgb.release_dlg(dlg);
return RO_RETURN_ERROR;
}
//set avp response with session id
res = create_response_avp_string("ro_session_id",
&ro_session->ro_session_id);
+ dlgb.release_dlg(dlg);
return res;
}