Skip to content

Commit a5df5ae

Browse files
committed
Fixup "Windows, mysqltest : cleanup, remove dead code USE_CYGWIN"
last commit 8221708 removed too much, mtr is failing
1 parent 8221708 commit a5df5ae

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

client/mysqltest.cc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -614,6 +614,10 @@ void fix_win_paths(char *val, size_t len);
614614
const char *get_errname_from_code (uint error_code);
615615
int multi_reg_replace(struct st_replace_regex* r,char* val);
616616

617+
#ifdef _WIN32
618+
void free_win_path_patterns();
619+
#endif
620+
617621

618622
/* For replace_column */
619623
static char *replace_column[MAX_COLUMNS];
@@ -1462,6 +1466,9 @@ void free_used_memory()
14621466
free_root(&require_file_root, MYF(0));
14631467
free_re();
14641468
my_free(read_command_buf);
1469+
#ifdef _WIN32
1470+
free_win_path_patterns();
1471+
#endif
14651472
DBUG_VOID_RETURN;
14661473
}
14671474

@@ -9172,6 +9179,7 @@ int main(int argc, char **argv)
91729179
init_builtin_echo();
91739180
#ifdef _WIN32
91749181
is_windows= 1;
9182+
init_win_path_patterns();
91759183
#endif
91769184

91779185
read_command_buf= (char*)my_malloc(read_command_buflen= 65536, MYF(MY_FAE));

0 commit comments

Comments
 (0)