[SR-Dev] git:master: * Added missing "goto err; " in a mod_init() error case.
Juha Heinanen
jh at tutpro.com
Fri May 15 09:36:36 CEST 2009
Module: sip-router
Branch: master
Commit: 904d8378c9c3f1b8b564cd7ae11bed1cd79116c7
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=904d8378c9c3f1b8b564cd7ae11bed1cd79116c7
Author: Juha Heinanen <jh at tutpro.com>
Committer: Juha Heinanen <jh at 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;
More information about the sr-dev
mailing list