diff --git a/modules/http/http_request.c b/modules/http/http_request.c index 22c23af6da..1bae06f48c 100644 --- a/modules/http/http_request.c +++ b/modules/http/http_request.c @@ -530,6 +530,7 @@ AP_DECLARE(void) ap_allow_methods(request_rec *r, int reset, ...) while ((method = va_arg(methods, const char *)) != NULL) { ap_method_list_add(r->allowed_methods, method); } + va_end(methods); } AP_DECLARE(void) ap_allow_standard_methods(request_rec *r, int reset, ...)