1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

Fix possible memory overrun when reading broken character set files

This commit is contained in:
monty@mashka.mysql.fi
2003-04-26 17:57:19 +03:00
parent 1621dd9818
commit f88097eee9
2 changed files with 2 additions and 2 deletions

View File

@ -785,7 +785,7 @@ void clean_up(bool print_message)
if (!opt_bootstrap)
(void) my_delete(pidfile_name,MYF(0)); // This may not always exist
#endif
if (print_message)
if (print_message && errmesg)
sql_print_error(ER(ER_SHUTDOWN_COMPLETE),my_progname);
x_free((gptr) my_errmsg[ERRMAPP]); /* Free messages */
my_thread_end();