mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
protection: TRASH in delete
fixed a bug that it discovered
This commit is contained in:
@@ -1175,9 +1175,13 @@ end:
|
||||
|
||||
void free_items(Item *item)
|
||||
{
|
||||
Item *next;
|
||||
DBUG_ENTER("free_items");
|
||||
for (; item ; item=item->next)
|
||||
for (; item ; item=next)
|
||||
{
|
||||
next=item->next;
|
||||
item->delete_self();
|
||||
}
|
||||
DBUG_VOID_RETURN;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user