From 27ca949f9d210721c4ca7662c3fe32b62f96271a Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Fri, 11 Apr 2014 11:25:32 -0600 Subject: [PATCH] Fix leak of string when doing parse dryrun Signed-off-by: Jens Axboe --- options.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.25.1