MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / free_items

Function free_items

sql/sql_parse.cc:537–547  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

535/* This works because items are allocated with sql_alloc() */
536
537void free_items(Item *item)
538{
539 Item *next;
540 DBUG_ENTER("free_items");
541 for (; item ; item=next)
542 {
543 next=item->next;
544 item->delete_self();
545 }
546 DBUG_VOID_RETURN;
547}
548
549/**
550 Perform one connection-level (COM_XXXX) command.

Callers 4

~sp_headMethod · 0.85
~sp_instrMethod · 0.85
~sp_lex_instrMethod · 0.85
cleanup_after_queryMethod · 0.85

Calls 1

delete_selfMethod · 0.80

Tested by

no test coverage detected