Browse Source

* Added missing "goto err;" in a mod_init() error case.

Juha Heinanen 16 years ago
parent
commit
904d8378c9
1 changed files with 1 additions and 0 deletions
  1. 1 0
      modules/lcr/lcr_mod.c

+ 1 - 0
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;