Commit 11155715 authored by Sergei Golubchik's avatar Sergei Golubchik

when freeing a possibly NULL pointer under safemalloc - use MY_ALLOW_ZERO_PTR

parent 672f82f5
...@@ -402,7 +402,7 @@ static void clean_up(struct languages *lang_head, struct errors *error_head) ...@@ -402,7 +402,7 @@ static void clean_up(struct languages *lang_head, struct errors *error_head)
my_free((uchar*) tmp_error->sql_code1, MYF(0)); my_free((uchar*) tmp_error->sql_code1, MYF(0));
if (tmp_error->sql_code2[0]) if (tmp_error->sql_code2[0])
my_free((uchar*) tmp_error->sql_code2, MYF(0)); my_free((uchar*) tmp_error->sql_code2, MYF(0));
my_free((uchar*) tmp_error->er_name, MYF(0)); my_free((uchar*) tmp_error->er_name, MYF(MY_ALLOW_ZERO_PTR));
my_free((uchar*) tmp_error, MYF(0)); my_free((uchar*) tmp_error, MYF(0));
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment