Module: sip-router
Branch: master
Commit: 904d8378c9c3f1b8b564cd7ae11bed1cd79116c7
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=904d837…
Author: Juha Heinanen <jh(a)tutpro.com>
Committer: Juha Heinanen <jh(a)tutpro.com>
Date: Fri May 15 10:35:41 2009 +0300
* Added missing "goto err;" in a mod_init() error case.
---
modules/lcr/lcr_mod.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/modules/lcr/lcr_mod.c b/modules/lcr/lcr_mod.c
index 41a3c43..52e2cf5 100644
--- a/modules/lcr/lcr_mod.c
+++ b/modules/lcr/lcr_mod.c
@@ -612,6 +612,7 @@ static int mod_init(void)
gws = (struct gw_info **)shm_malloc(sizeof(struct gw_info *));
if (gws == 0) {
LM_ERR("no memory for gw table pointer\n");
+ goto err;
}
gws_1[0].ip_addr = 0; /* Number of gateways in table */
*gws = gws_1;