projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
rbd: fix leak in error path
[fio.git]
/
engines
/
rbd.c
diff --git
a/engines/rbd.c
b/engines/rbd.c
index 32ce60cfed4fb30239b6750bd91bd8b27bfaa2ee..85a705fc8bd4d8ae6347f2378a0058e8566c0d2f 100644
(file)
--- a/
engines/rbd.c
+++ b/
engines/rbd.c
@@
-86,6
+86,8
@@
static int _fio_setup_rbd_data(struct thread_data *td,
return 0;
failed:
+ if (rbd_data)
+ free(rbd_data);
return 1;
}