summaryrefslogtreecommitdiff
path: root/mysys/list.c
diff options
context:
space:
mode:
Diffstat (limited to 'mysys/list.c')
-rw-r--r--mysys/list.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mysys/list.c b/mysys/list.c
index aaadd686365..e68fbf519d1 100644
--- a/mysys/list.c
+++ b/mysys/list.c
@@ -61,8 +61,8 @@ void list_free(LIST *root, uint free_data)
{
next=root->next;
if (free_data)
- my_free((uchar*) root->data,MYF(0));
- my_free((uchar*) root,MYF(0));
+ my_free(root->data);
+ my_free(root);
root=next;
}
}