summaryrefslogtreecommitdiff
path: root/tests/thread_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/thread_test.c')
-rw-r--r--tests/thread_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/thread_test.c b/tests/thread_test.c
index def133f4a3f..1a3dd60c1fd 100644
--- a/tests/thread_test.c
+++ b/tests/thread_test.c
@@ -150,7 +150,7 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)),
case 'p':
if (argument)
{
- my_free(password, MYF(MY_ALLOW_ZERO_PTR));
+ my_free(password);
password= my_strdup(argument, MYF(MY_FAE));
while (*argument) *argument++= 'x'; /* Destroy argument */
}