mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 02:05:57 +01:00
remove the entry from the list, before freeing
This commit is contained in:
parent
79240013b2
commit
1ca9d6497b
1 changed files with 4 additions and 0 deletions
|
@ -275,7 +275,11 @@ static void safe_hash_change(SAFE_HASH *hash, byte *old_data, byte *new_data)
|
|||
if (entry->data == old_data)
|
||||
{
|
||||
if (new_data == hash->default_value)
|
||||
{
|
||||
if ((*entry->prev= entry->next))
|
||||
entry->next->prev= entry->prev;
|
||||
hash_delete(&hash->hash, (byte*) entry);
|
||||
}
|
||||
else
|
||||
entry->data= new_data;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue