mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Fix two Valgrind memory leak warnings.
This commit is contained in:
@ -788,7 +788,8 @@ static void die(const char* fmt, ...)
|
||||
fprintf(stderr, "\n");
|
||||
va_end(args);
|
||||
cleanup();
|
||||
my_end(0);
|
||||
/* We cannot free DBUG, it is used in global destructors after exit(). */
|
||||
my_end(MY_DONT_FREE_DBUG);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
@ -1460,7 +1461,8 @@ int main(int argc, char** argv)
|
||||
cleanup();
|
||||
free_defaults(defaults_argv);
|
||||
my_free_open_file_info();
|
||||
my_end(0);
|
||||
/* We cannot free DBUG, it is used in global destructors after exit(). */
|
||||
my_end(MY_DONT_FREE_DBUG);
|
||||
exit(exit_value);
|
||||
DBUG_RETURN(exit_value); // Keep compilers happy
|
||||
}
|
||||
|
Reference in New Issue
Block a user