Fix invalid free() in run-test262 (#487)

This commit is contained in:
Ben Noordhuis 2024-08-23 17:53:02 +02:00 committed by GitHub
parent cee3b88edb
commit 4e52027fe7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2077,7 +2077,7 @@ int main(int argc, char **argv)
} else if (str_equal(arg, "-f")) { } else if (str_equal(arg, "-f")) {
is_dir_list = FALSE; is_dir_list = FALSE;
} else if (str_equal(arg, "-r")) { } else if (str_equal(arg, "-r")) {
report_filename = get_opt_arg(arg, argv[optind++]); report_filename = strdup(get_opt_arg(arg, argv[optind++]));
} else if (str_equal(arg, "-E")) { } else if (str_equal(arg, "-E")) {
only_check_errors = TRUE; only_check_errors = TRUE;
} else if (str_equal(arg, "-T")) { } else if (str_equal(arg, "-T")) {