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

Function Group_Free

src/grouping/group.c:33–54  ·  view source on GitHub ↗

free group

Source from the content-addressed store, hash-verified

31
32// free group
33void Group_Free
34(
35 Group *g // group to free
36) {
37 if(g == NULL) {
38 return;
39 }
40
41 if(g->keys != NULL) {
42 for(int i = 0; i < g->key_count; i ++) {
43 SIValue_Free(g->keys[i]);
44 }
45 rm_free(g->keys);
46 }
47
48 for(uint i = 0; i < g->func_count; i++) {
49 AR_EXP_Free(g->agg[i]);
50 }
51
52 rm_free(g->agg);
53 rm_free(g);
54}
55

Callers 1

freeCallbackFunction · 0.85

Calls 3

SIValue_FreeFunction · 0.85
rm_freeFunction · 0.85
AR_EXP_FreeFunction · 0.85

Tested by

no test coverage detected