diff options
author | Michael Widenius <monty@askmonty.org> | 2011-04-28 23:58:00 +0300 |
---|---|---|
committer | Michael Widenius <monty@askmonty.org> | 2011-04-28 23:58:00 +0300 |
commit | 046418ad956c98c3788d79650fcb50479844df3b (patch) | |
tree | c7992090ef03b9b20af5266c589941ddd1145be7 /libmysqld | |
parent | 3a3a91ff051abe859589e33fab4b5588e325d55b (diff) | |
download | mariadb-git-046418ad956c98c3788d79650fcb50479844df3b.tar.gz |
Added calls to cleanup_mutexes() for embedded library.
Diffstat (limited to 'libmysqld')
-rw-r--r-- | libmysqld/lib_sql.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libmysqld/lib_sql.cc b/libmysqld/lib_sql.cc index 7de1ecd6ef3..d15aedd39e6 100644 --- a/libmysqld/lib_sql.cc +++ b/libmysqld/lib_sql.cc @@ -47,6 +47,7 @@ extern "C" void unireg_clear(int exit_code) { DBUG_ENTER("unireg_clear"); clean_up(!opt_help && (exit_code || !opt_bootstrap)); /* purecov: inspected */ + clean_up_mutexes(); my_end(opt_endinfo ? MY_CHECK_ERROR | MY_GIVE_INFO : 0); DBUG_VOID_RETURN; } @@ -576,6 +577,7 @@ void end_embedded_server() my_free((char*) copy_arguments_ptr, MYF(MY_ALLOW_ZERO_PTR)); copy_arguments_ptr=0; clean_up(0); + clean_up_mutexes(); } |