diff options
author | Sergei Golubchik <sergii@pisem.net> | 2011-10-11 21:43:43 +0200 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2011-10-11 21:43:43 +0200 |
commit | 5cb67bbd7736e42581520680a95d556b4edb6aee (patch) | |
tree | 8afa198fde168319a573f27760878078628a8f9c /extra/comp_err.c | |
parent | 7f975df6b85f7672ff608d008261b5b7c7dd788e (diff) | |
download | mariadb-git-5cb67bbd7736e42581520680a95d556b4edb6aee.tar.gz |
when freeing a possibly NULL pointer under safemalloc - use MY_ALLOW_ZERO_PTR
Diffstat (limited to 'extra/comp_err.c')
-rw-r--r-- | extra/comp_err.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extra/comp_err.c b/extra/comp_err.c index 24ec8974d03..5ae5d29994b 100644 --- a/extra/comp_err.c +++ b/extra/comp_err.c @@ -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)); if (tmp_error->sql_code2[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)); } } |