projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
iolog: free memory on gz init failure
[fio.git]
/
iolog.c
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;