projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
78e93aa
)
iolog: free memory on gz init failure
author
Jens Axboe
<axboe@fb.com>
Thu, 5 May 2016 16:51:23 +0000
(10:51 -0600)
committer
Jens Axboe
<axboe@fb.com>
Thu, 5 May 2016 16:51:23 +0000
(10:51 -0600)
Signed-off-by: Jens Axboe <axboe@fb.com>
iolog.c
patch
|
blob
|
blame
|
history
diff --git
a/iolog.c
b/iolog.c
index e4a414f935f873be45134e6d9f9c127ca7d9e579..7d19fbfa8c04b43ab2a18ba8f05ce1ef770d0096 100644
(file)
--- a/
iolog.c
+++ b/
iolog.c
@@
-1022,7
+1022,7
@@
static int gz_work(struct iolog_flush_data *data)
ret = deflateInit(&stream, Z_DEFAULT_COMPRESSION);
if (ret != Z_OK) {
log_err("fio: failed to init gz stream\n");
-
return 0
;
+
goto err
;
}
seq = ++data->log->chunk_seq;