aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2023-12-14 14:15:34 -0700
committerJens Axboe <axboe@kernel.dk>2023-12-14 14:15:34 -0700
commit4e472f8806571ea5799bc898e44609697ba0e140 (patch)
tree44231314b5e1cb8929e9bf1f4161b8bcb74dcad4
parent08a68c482a782006ff7e530a2b8fb7f019d460cd (diff)
parent9e66b0606cad74cb98dc44cb91903432171585a9 (diff)
downloadfio-4e472f8806571ea5799bc898e44609697ba0e140.tar.gz
Merge branch 'master' of https://github.com/preichl/fio
* 'master' of https://github.com/preichl/fio: engines/http: Fix memory leak
-rw-r--r--engines/http.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/http.c b/engines/http.c
index 56dc7d1b1..83cfe8bb7 100644
--- a/engines/http.c
+++ b/engines/http.c
@@ -250,6 +250,7 @@ static char *_aws_uriencode(const char *uri)
for (i = 0; (c = uri[i]); i++) {
if (n > bufsize-5) {
log_err("encoding the URL failed\n");
+ free(r);
return NULL;
}