Skip to content
Permalink
Browse files
Let us close library and only then free defaults.
  • Loading branch information
sanja-byelkin committed May 6, 2019
1 parent 5496df8 commit a5cfa41
Showing 1 changed file with 1 addition and 1 deletion.
@@ -514,11 +514,11 @@ static void safe_exit(int error, MYSQL *mysql)
if (mysql)
mysql_close(mysql);

mysql_library_end();
#ifdef HAVE_SMEM
my_free(shared_memory_base_name);
#endif
free_defaults(argv_to_free);
mysql_library_end();
my_free(opt_password);
if (error)
sf_leaking_memory= 1; /* dirty exit, some threads are still running */

0 comments on commit a5cfa41

Please sign in to comment.