projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix leak of 'error' if we don't assign it
[fio.git]
/
options.c
diff --git
a/options.c
b/options.c
index 4a54c98c15045864931ea503d3f7920bab4ae431..ae04b3bb914043d4cc44e992f832c06cbba8e8ca 100644
(file)
--- a/
options.c
+++ b/
options.c
@@
-283,7
+283,9
@@
static int ignore_error_type(struct thread_data *td, int etype, char *str)
td->o.continue_on_error |= 1 << etype;
td->o.ignore_error_nr[etype] = i;
td->o.ignore_error[etype] = error;
- }
+ } else
+ free(error);
+
return 0;
}