1
0
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:
serg@serg.mylan
2004-11-28 15:53:17 +01:00
parent 5b3f7c59ec
commit f09429a4df
11 changed files with 32 additions and 29 deletions

View File

@@ -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;
}