From: Jens Axboe Date: Fri, 11 Apr 2014 17:25:32 +0000 (-0600) Subject: Fix leak of string when doing parse dryrun X-Git-Tag: fio-2.1.9~76 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=27ca949f9d210721c4ca7662c3fe32b62f96271a Fix leak of string when doing parse dryrun Signed-off-by: Jens Axboe --- diff --git a/options.c b/options.c index ae04b3bb..5c372b69 100644 --- a/options.c +++ b/options.c @@ -322,7 +322,7 @@ static int str_rw_cb(void *data, const char *str) { 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 @@ static int str_rw_cb(void *data, const char *str) o->ddir_seq_nr = 1; o->ddir_seq_add = 0; + nr = get_opt_postfix(str); if (!nr) return 0;