From bbfda1e4a994c23bea928ce215f38a36816363de Mon Sep 17 00:00:00 2001 From: Leonardo Alminana Date: Mon, 18 Nov 2024 14:37:10 +0100 Subject: [PATCH] http_client: added missing exit path Signed-off-by: Leonardo Alminana --- src/flb_http_client.c | 5 +++++ 1 file changed, 5 insertions(+) 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);