fix double free on exit for -c 0 on src cmplog

This commit is contained in:
vanhauser-thc
2022-07-07 09:03:46 +02:00
parent e6f27c2645
commit 1759859ae2
2 changed files with 18 additions and 17 deletions

View File

@ -1469,7 +1469,7 @@ int main(int argc, char **argv_orig, char **envp) {
if (afl->shm.cmplog_mode &&
(!strcmp("-", afl->cmplog_binary) || !strcmp("0", afl->cmplog_binary))) {
afl->cmplog_binary = argv[optind];
afl->cmplog_binary = strdup(argv[optind]);
}