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

Function ApplyFree

src/execution_plan/ops/op_apply.c:112–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110}
111
112static void ApplyFree(OpBase *opBase) {
113 Apply *op = (Apply *)opBase;
114
115 // free collected records
116 if(op->records != NULL) {
117 uint32_t n = array_len(op->records);
118 for(uint32_t i = 0; i < n; i++) {
119 OpBase_DeleteRecord(op->records[i]);
120 }
121
122 array_free(op->records);
123 op->records = NULL;
124 }
125
126 op->r = NULL;
127}
128

Callers

nothing calls this directly

Calls 3

array_lenFunction · 0.85
OpBase_DeleteRecordFunction · 0.85
array_freeFunction · 0.85

Tested by

no test coverage detected