summaryrefslogtreecommitdiff
path: root/client/mysqltest.cc
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2021-09-24 16:52:30 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2021-09-24 16:52:30 +0300
commit69bd2c88e17df2aa6c0edce5196e70976129dfab (patch)
tree8418a610f98f8ec525420f316e8f61184d636fca /client/mysqltest.cc
parent25a5ce367b6a553c6563adfd8869d5961f71b2cd (diff)
parentd7aa81c862b5d813f8fe3440b7e011a555e88d96 (diff)
downloadmariadb-git-69bd2c88e17df2aa6c0edce5196e70976129dfab.tar.gz
Merge 10.3 into 10.4
Diffstat (limited to 'client/mysqltest.cc')
-rw-r--r--client/mysqltest.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/client/mysqltest.cc b/client/mysqltest.cc
index 92b86fafaeb..3ea279218eb 100644
--- a/client/mysqltest.cc
+++ b/client/mysqltest.cc
@@ -614,6 +614,10 @@ void fix_win_paths(char *val, size_t len);
const char *get_errname_from_code (uint error_code);
int multi_reg_replace(struct st_replace_regex* r,char* val);
+#ifdef _WIN32
+void free_win_path_patterns();
+#endif
+
/* For replace_column */
static char *replace_column[MAX_COLUMNS];
@@ -1447,6 +1451,9 @@ void free_used_memory()
free_root(&require_file_root, MYF(0));
free_re();
my_free(read_command_buf);
+#ifdef _WIN32
+ free_win_path_patterns();
+#endif
DBUG_VOID_RETURN;
}
@@ -9124,6 +9131,7 @@ int main(int argc, char **argv)
init_builtin_echo();
#ifdef _WIN32
is_windows= 1;
+ init_win_path_patterns();
#endif
read_command_buf= (char*)my_malloc(read_command_buflen= 65536, MYF(MY_FAE));