summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2019-10-29 10:05:34 -0600
committerJens Axboe <axboe@kernel.dk>2019-10-29 10:05:34 -0600
commit8fa69ffaa2f6a9432fbc81b01017d0d5a364b21e (patch)
treee902d1832d8bcfbc7524479cde594c31edd125c2
parentc656b9056e45f9acd1d374a85c5becf7cc6a00ca (diff)
parentab43b8cb08d2152e3f15544f8dfd49d7e3e975cc (diff)
downloadfio-8fa69ffaa2f6a9432fbc81b01017d0d5a364b21e.tar.gz
fio-8fa69ffaa2f6a9432fbc81b01017d0d5a364b21e.tar.bz2
Merge branch '1029_tet' of https://github.com/optimistyzy/fio
* '1029_tet' of https://github.com/optimistyzy/fio: backend: fix the memory leak if fio_memalign fails,
-rw-r--r--backend.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend.c b/backend.c
index fe868271..cb15b0e6 100644
--- a/backend.c
+++ b/backend.c
@@ -1236,7 +1236,7 @@ static int init_io_u(struct thread_data *td)
ptr = fio_memalign(cl_align, sizeof(*io_u), td_offload_overlap(td));
if (!ptr) {
log_err("fio: unable to allocate aligned memory\n");
- break;
+ return 1;
}
io_u = ptr;