commit | 27ca949f9d210721c4ca7662c3fe32b62f96271a | [log] [tgz] |
---|---|---|
author | Jens Axboe <axboe@fb.com> | Fri Apr 11 11:25:32 2014 -0600 |
committer | Jens Axboe <axboe@fb.com> | Fri Apr 11 11:25:32 2014 -0600 |
tree | 44fd3158e09afddadec6010cb23edf94bf5895dd | |
parent | 68ace9e00ca481d101f9937461402b83e8895ba2 [diff] [blame] |
Fix leak of string when doing parse dryrun Signed-off-by: Jens Axboe <axboe@fb.com>
diff --git a/options.c b/options.c index ae04b3b..5c372b6 100644 --- a/options.c +++ b/options.c
@@ -322,7 +322,7 @@ { struct thread_data *td = data; struct thread_options *o = &td->o; - char *nr = get_opt_postfix(str); + char *nr; if (parse_dryrun()) return 0; @@ -330,6 +330,7 @@ o->ddir_seq_nr = 1; o->ddir_seq_add = 0; + nr = get_opt_postfix(str); if (!nr) return 0;