projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
499b43c
)
Fix leak of 'error' if we don't assign it
author
Jens Axboe
<axboe@fb.com>
Fri, 11 Apr 2014 17:20:29 +0000
(11:20 -0600)
committer
Jens Axboe
<axboe@fb.com>
Fri, 11 Apr 2014 17:20:29 +0000
(11:20 -0600)
Signed-off-by: Jens Axboe <axboe@fb.com>
options.c
patch
|
blob
|
blame
|
history
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;
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;
}
return 0;
}