From db27a84f14de85d1aef4b7dabddfb092e15e1675 Mon Sep 17 00:00:00 2001 From: Leonardo Alminana Date: Wed, 4 Sep 2024 12:28:26 +0200 Subject: [PATCH] tests: internal: signv4: fixed leak Signed-off-by: Leonardo Alminana --- tests/internal/signv4.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/internal/signv4.c b/tests/internal/signv4.c index fb9761b3782..da696b11c96 100644 --- a/tests/internal/signv4.c +++ b/tests/internal/signv4.c @@ -187,6 +187,8 @@ static struct request *http_request_create(char *request) start = sep + 1; br = strchr(start, '\n'); if (!br) { + flb_sds_destroy(key); + break; }