Module: sip-router
Branch: master
Commit: d777926f7abf3e1b723030d6371e46ea394c3dba
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=d777926…
Author: Juha Heinanen <jh(a)tutpro.com>
Committer: Juha Heinanen <jh(a)tutpro.com>
Date: Sat Jun 6 13:02:42 2009 +0300
* Database query result was not freed when there was error in getting
extra_hdrs pv value.
---
modules_k/msilo/msilo.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/modules_k/msilo/msilo.c b/modules_k/msilo/msilo.c
index e5f0e9b..23f9cb7 100644
--- a/modules_k/msilo/msilo.c
+++ b/modules_k/msilo/msilo.c
@@ -1033,6 +1033,8 @@ static int m_dump(struct sip_msg* msg, char* owner, char* str2)
if (ms_extra_hdrs != NULL) {
if (fixup_get_svalue(msg, (gparam_p)*ms_extra_hdrs_sp,
&extra_hdrs_str) != 0) {
+ if (msilo_dbf.free_result(db_con, db_res) < 0)
+ LM_ERR("failed to free the query result\n");
LM_ERR("unable to get extra_hdrs value\n");
goto error;
}