Module: sip-router
Branch: master
Commit: 9f8f66c44f5d44f945bba3b63160967a19044b8b
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=9f8f66c…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Mon Apr 21 21:40:15 2014 +0200
xlog: clean exit at startup in case on error looking up facility
---
modules/xlog/xlog.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/modules/xlog/xlog.c b/modules/xlog/xlog.c
index 8a9b8c2..968e99d 100644
--- a/modules/xlog/xlog.c
+++ b/modules/xlog/xlog.c
@@ -448,6 +448,7 @@ static int xlog3_fixup_helper(void** param, int param_no)
*facility = str2facility(s.s);
if (*facility == -1) {
LM_ERR("invalid syslog facility %s\n", s.s);
+ pkg_free(facility);
return E_UNSPEC;
}