MCPcopy Create free account
hub / github.com/MariaDB/server / free_items

Function free_items

sql/sql_parse.cc:1123–1133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1121/* This works because items are allocated on THD::mem_root */
1122
1123void free_items(Item *item)
1124{
1125 Item *next;
1126 DBUG_ENTER("free_items");
1127 for (; item ; item=next)
1128 {
1129 next=item->next;
1130 item->delete_self();
1131 }
1132 DBUG_VOID_RETURN;
1133}
1134
1135/**
1136 This works because items are allocated on THD::mem_root.

Callers 10

closeMethod · 0.85
re_create_par_fileMethod · 0.85
open_table_from_shareFunction · 0.85
closefrmFunction · 0.85
~sp_headMethod · 0.85
~sp_lex_cursorMethod · 0.85
~sp_instrMethod · 0.85
~sp_lex_instrMethod · 0.85
cleanup_after_queryMethod · 0.85
~Prepared_statementMethod · 0.85

Calls 1

delete_selfMethod · 0.80

Tested by

no test coverage detected