diff --git a/NEWS b/NEWS index c1e84448..fab6d37c 100644 --- a/NEWS +++ b/NEWS @@ -25,6 +25,7 @@ NEWS * fixed prctl() usage (#1310) * removed config-check if passwd files exist (#1188) * fixed crash when etags are disabled but the client sends one (#1322) + * fixed crash when freeing the config in mod_alias - 1.4.16 - diff --git a/src/mod_alias.c b/src/mod_alias.c index 43b11c2e..a7d9b7e8 100644 --- a/src/mod_alias.c +++ b/src/mod_alias.c @@ -45,6 +45,8 @@ FREE_FUNC(mod_alias_free) { for (i = 0; i < srv->config_context->used; i++) { plugin_config *s = p->config_storage[i]; + if(!s) continue; + array_free(s->alias); free(s);