projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
32e7c69
)
engines/dev-dax: fix leak of 'sfile' in error case
author
Jens Axboe
<axboe@kernel.dk>
Fri, 1 Dec 2017 02:48:25 +0000
(19:48 -0700)
committer
Jens Axboe
<axboe@kernel.dk>
Fri, 1 Dec 2017 02:48:25 +0000
(19:48 -0700)
Signed-off-by: Jens Axboe <axboe@kernel.dk>
engines/dev-dax.c
patch
|
blob
|
blame
|
history
diff --git
a/engines/dev-dax.c
b/engines/dev-dax.c
index 235a31e640b17d69c42df5a53aa25b697ca16aec..b1f91a40f739d3f549592434d269b0c859982a50 100644
(file)
--- a/
engines/dev-dax.c
+++ b/
engines/dev-dax.c
@@
-307,6
+307,7
@@
fio_devdax_get_file_size(struct thread_data *td, struct fio_file *f)
if (rc < 0) {
log_err("%s: fscanf on %s failed (%s)\n",
td->o.name, spath, strerror(errno));
if (rc < 0) {
log_err("%s: fscanf on %s failed (%s)\n",
td->o.name, spath, strerror(errno));
+ fclose(sfile);
return 1;
}
return 1;
}