Module: sip-router Branch: 4.1 Commit: 6c967cebd213d1820cd1af428db5449b1af9aec1 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=6c967ceb...
Author: Hugh Waite hugh.waite@acision.com Committer: Hugh Waite hugh.waite@acision.com Date: Tue Aug 12 19:52:27 2014 +0100
outbound: Fix memory leak
- Free parameters parsed when checking for ob markers (cherry picked from commit 392689597376eb6f047c12504bcce367f5940260)
---
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 038c5fa..aae1e10 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"