diff --git a/src/flb_http_client.c b/src/flb_http_client.c index 80a643678ee..1dad0cba159 100644 --- a/src/flb_http_client.c +++ b/src/flb_http_client.c @@ -2204,6 +2204,11 @@ int flb_http_request_set_authorization(struct flb_http_request *request, return -1; } } + else { + va_end(arguments); + + return -1; + } va_end(arguments);