projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d73ac88
)
glusterfs: fix leak in error path
author
Jens Axboe
<axboe@fb.com>
Thu, 3 Jul 2014 21:30:37 +0000
(15:30 -0600)
committer
Jens Axboe
<axboe@fb.com>
Thu, 3 Jul 2014 21:30:37 +0000
(15:30 -0600)
Signed-off-by: Jens Axboe <axboe@fb.com>
engines/glusterfs.c
patch
|
blob
|
blame
|
history
diff --git
a/engines/glusterfs.c
b/engines/glusterfs.c
index a64c687f8264db9c9e470a1779cd18840ce78902..52006b04075ab26f46bae54973d34e29dd92d096 100644
(file)
--- a/
engines/glusterfs.c
+++ b/
engines/glusterfs.c
@@
-77,16
+77,12
@@
int fio_gf_setup(struct thread_data *td)
}
dprint(FD_FILE, "fio setup %p\n", g->fs);
td->io_ops->data = g;
}
dprint(FD_FILE, "fio setup %p\n", g->fs);
td->io_ops->data = g;
+ return 0;
cleanup:
cleanup:
- if (r) {
- if (g) {
- if (g->fs) {
- glfs_fini(g->fs);
- }
- free(g);
- td->io_ops->data = NULL;
- }
- }
+ if (g->fs)
+ glfs_fini(g->fs);
+ free(g);
+ td->io_ops->data = NULL;
return r;
}
return r;
}