projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
c656b90
)
Merge branch '1029_tet' of https://github.com/optimistyzy/fio
author
Jens Axboe
<axboe@kernel.dk>
Tue, 29 Oct 2019 16:05:34 +0000
(10:05 -0600)
committer
Jens Axboe
<axboe@kernel.dk>
Tue, 29 Oct 2019 16:05:34 +0000
(10:05 -0600)
* '1029_tet' of https://github.com/optimistyzy/fio:
backend: fix the memory leak if fio_memalign fails,
backend.c
patch
|
blob
|
blame
|
history
diff --git
a/backend.c
b/backend.c
index fe868271a6cd90e755743965bdaf0936826272c1..cb15b0e626ea1264f39f16532dfde454706248eb 100644
(file)
--- 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;