[sr-dev] git:master: outbound: Fix memory leak
Hugh Waite
hugh.waite at acision.com
Wed Aug 13 10:34:27 CEST 2014
Module: sip-router
Branch: master
Commit: 392689597376eb6f047c12504bcce367f5940260
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=392689597376eb6f047c12504bcce367f5940260
Author: Hugh Waite <hugh.waite at acision.com>
Committer: Hugh Waite <hugh.waite at acision.com>
Date: Tue Aug 12 19:52:27 2014 +0100
outbound: Fix memory leak
- Free parameters parsed when checking for ob markers
---
modules/outbound/ob_mod.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/modules/outbound/ob_mod.c b/modules/outbound/ob_mod.c
index 201fca0..fba64b0 100644
--- a/modules/outbound/ob_mod.c
+++ b/modules/outbound/ob_mod.c
@@ -385,6 +385,8 @@ static int use_outbound_non_reg(struct sip_msg *msg)
LM_ERR("parsing Route-URI parameters\n");
return 0;
}
+ /* Not interested in param body - just the hooks */
+ free_params(params);
if (hooks.uri.ob)
{
@@ -450,6 +452,9 @@ static int use_outbound_non_reg(struct sip_msg *msg)
LM_ERR("parsing Contact-URI parameters\n");
return 0;
}
+ /* Not interested in param body - just the hooks */
+ free_params(params);
+
if (hooks.contact.ob)
{
LM_DBG("found ;ob parameter on Contact-URI - outbound"
More information about the sr-dev
mailing list