MCPcopy Create free account
hub / github.com/RedisGraph/RedisGraph / Map_Free

Function Map_Free

src/datatypes/map.c:330–345  ·  view source on GitHub ↗

free map

Source from the content-addressed store, hash-verified

328
329// free map
330void Map_Free
331(
332 SIValue map
333) {
334 ASSERT(SI_TYPE(map) & T_MAP);
335
336 uint l = Map_KeyCount(map);
337
338 // free stored pairs
339 for(uint i = 0; i < l; i++) {
340 Pair p = map.map[i];
341 Pair_Free(p);
342 }
343
344 array_free(map.map);
345}
346

Callers 4

SIValue_FreeFunction · 0.85
test_empty_mapFunction · 0.85
test_map_addFunction · 0.85
test_map_removeFunction · 0.85

Calls 3

Map_KeyCountFunction · 0.85
Pair_FreeFunction · 0.85
array_freeFunction · 0.85

Tested by 3

test_empty_mapFunction · 0.68
test_map_addFunction · 0.68
test_map_removeFunction · 0.68