projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Don't leak memory if profile option is given twice
[fio.git]
/
init.c
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: {