Module: sip-router Branch: 4.0 Commit: 67aff0acbae4bcc7e68577c9f94ac5156b03d87c URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=67aff0ac...
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 6318b16..9865272 100644 --- a/modules/outbound/ob_mod.c +++ b/modules/outbound/ob_mod.c @@ -365,6 +365,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) { @@ -422,6 +424,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"