Skip to content

Commit 4e52027

Browse files
authored
Fix invalid free() in run-test262 (#487)
1 parent cee3b88 commit 4e52027

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

run-test262.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2077,7 +2077,7 @@ int main(int argc, char **argv)
20772077
} else if (str_equal(arg, "-f")) {
20782078
is_dir_list = FALSE;
20792079
} else if (str_equal(arg, "-r")) {
2080-
report_filename = get_opt_arg(arg, argv[optind++]);
2080+
report_filename = strdup(get_opt_arg(arg, argv[optind++]));
20812081
} else if (str_equal(arg, "-E")) {
20822082
only_check_errors = TRUE;
20832083
} else if (str_equal(arg, "-T")) {

0 commit comments

Comments
 (0)