Commit 7109999b authored by unknown's avatar unknown
Browse files

remove the entry from the list, before freeing

parent ba3b78d9
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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;
    }