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

Function my_hash_free_elements

mysys/hash.c:127–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125*/
126
127static inline void my_hash_free_elements(HASH *hash)
128{
129 if (hash->free)
130 {
131 HASH_LINK *data=dynamic_element(&hash->array,0,HASH_LINK*);
132 HASH_LINK *end= data + hash->records;
133 while (data < end)
134 (*hash->free)((data++)->data);
135 }
136 hash->records=0;
137}
138
139
140/*

Callers 2

my_hash_freeFunction · 0.85
my_hash_resetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected