projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
core: Don't leak memory if error is unknown
[fio.git]
/
options.c
diff --git
a/options.c
b/options.c
index 6462c67c3a92ff7c1a966ef90e33b8814219928f..1c44f426dcbde350f6bff5479e31aeee37b7702f 100644
(file)
--- a/
options.c
+++ b/
options.c
@@
-271,6
+271,7
@@
static int ignore_error_type(struct thread_data *td, int etype, char *str)
if (!error[i]) {
log_err("Unknown error %s, please use number value \n",
fname);
+ free(error);
return 1;
}
i++;