commit | 4af7c007e120a3fd75cdbbb50d1cf1fd79e67732 | [log] [tgz] |
---|---|---|
author | Jens Axboe <axboe@fb.com> | Fri Apr 11 11:38:38 2014 -0600 |
committer | Jens Axboe <axboe@fb.com> | Fri Apr 11 11:38:38 2014 -0600 |
tree | 3984c46c604052cd9561afd6479026980755c2f7 | |
parent | b8ba87ac231c3facccb1e5b0e8b1b88dd162f8f3 [diff] [blame] |
Don't leak memory if profile option is given twice Signed-off-by: Jens Axboe <axboe@fb.com>
diff --git a/init.c b/init.c index 1c37ab9..a0ec914 100644 --- a/init.c +++ b/init.c
@@ -1828,6 +1828,8 @@ break; } case 'p': + if (exec_profile) + free(exec_profile); exec_profile = strdup(optarg); break; case FIO_GETOPT_JOB: {