}
if (initialized_modules == NULL)
+ {
initialized_modules = sk_CONF_IMODULE_new_null();
-
- if (!initialized_modules)
- goto err;
+ if (!initialized_modules)
+ {
+ CONFerr(CONF_F_MODULE_INIT, ERR_R_MALLOC_FAILURE);
+ goto err;
+ }
+ }
if (!sk_CONF_IMODULE_push(initialized_modules, imod))
+ {
+ CONFerr(CONF_F_MODULE_INIT, ERR_R_MALLOC_FAILURE);
goto err;
+ }
pmod->links++;
err:
- CONFerr(CONF_F_MODULE_INIT, ERR_R_MALLOC_FAILURE);
-
/* We've started the module so we'd better finish it */
if (pmod->finish && init_called)
pmod->finish(imod);