Module: sip-router Branch: 4.0 Commit: 6abd4b4d1eeea2c57a8bcfb071fadaca21efc20f URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=6abd4b4d...
Author: Hugh Waite hugh.waite@crocodile-rcs.com Committer: Hugh Waite hugh.waite@crocodile-rcs.com Date: Tue Jul 16 10:51:29 2013 +0100
outbound: Fix freeing null pointer in destroy function
- Only appears in error cases, e.g. syntax check (cherry picked from commit e88af0a02de79fac583c126f08d762f7ef3f1b01)
---
modules/outbound/ob_mod.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/modules/outbound/ob_mod.c b/modules/outbound/ob_mod.c index 3d4d967..6318b16 100644 --- a/modules/outbound/ob_mod.c +++ b/modules/outbound/ob_mod.c @@ -112,7 +112,8 @@ static int mod_init(void)
static void destroy(void) { - shm_free(ob_key.s); + if (ob_key.s) + shm_free(ob_key.s); }
/* Structure of flow-token