projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
b8ba87a
)
Don't leak memory if profile option is given twice
author
Jens Axboe
<axboe@fb.com>
Fri, 11 Apr 2014 17:38:38 +0000
(11:38 -0600)
committer
Jens Axboe
<axboe@fb.com>
Fri, 11 Apr 2014 17:38:38 +0000
(11:38 -0600)
Signed-off-by: Jens Axboe <axboe@fb.com>
init.c
patch
|
blob
|
blame
|
history
diff --git
a/init.c
b/init.c
index 1c37ab92f5209af2830e3b9920f8ffa64b47fc80..a0ec914130934ba52626aad25f2b60b15c93c4a3 100644
(file)
--- a/
init.c
+++ b/
init.c
@@
-1828,6
+1828,8
@@
int parse_cmd_line(int argc, char *argv[], int client_type)
break;
}
case 'p':
+ if (exec_profile)
+ free(exec_profile);
exec_profile = strdup(optarg);
break;
case FIO_GETOPT_JOB: {