mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 05:22:25 +01:00
Bugfix: only call innobase_release_temporary_latches() in case of current_thd
is not NULL, otherwise we get NULL pointer dereferencing. Approved by: Heikki
This commit is contained in:
parent
061e01a061
commit
54f780f055
1 changed files with 6 additions and 1 deletions
|
@ -2568,9 +2568,14 @@ ha_innobase::close(void)
|
|||
/*====================*/
|
||||
/* out: 0 */
|
||||
{
|
||||
THD* thd;
|
||||
|
||||
DBUG_ENTER("ha_innobase::close");
|
||||
|
||||
innobase_release_temporary_latches(ht, current_thd);
|
||||
thd = current_thd; // avoid calling current_thd twice, it may be slow
|
||||
if (thd != NULL) {
|
||||
innobase_release_temporary_latches(ht, thd);
|
||||
}
|
||||
|
||||
row_prebuilt_free(prebuilt);
|
||||
|
||||
|
|
Loading…
Reference in a new issue