mirror of
https://github.com/MariaDB/server.git
synced 2026-05-02 13:15:32 +02:00
fixed a memory leak in ha_tina.cc
This commit is contained in:
parent
d2fc3bd424
commit
87ad1060d3
3 changed files with 17 additions and 0 deletions
|
|
@ -234,6 +234,16 @@ static int free_share(TINA_SHARE *share)
|
|||
DBUG_RETURN(result_code);
|
||||
}
|
||||
|
||||
bool tina_end()
|
||||
{
|
||||
if (tina_init)
|
||||
{
|
||||
hash_free(&tina_open_tables);
|
||||
VOID(pthread_mutex_destroy(&tina_mutex));
|
||||
}
|
||||
tina_init= 0;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/*
|
||||
Finds the end of a line.
|
||||
|
|
|
|||
|
|
@ -126,3 +126,6 @@ public:
|
|||
int find_current_row(byte *buf);
|
||||
int chain_append();
|
||||
};
|
||||
|
||||
bool tina_end();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue