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

Function NodeByLabelScanFree

src/execution_plan/ops/op_node_by_label_scan.c:252–272  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

250}
251
252static void NodeByLabelScanFree(OpBase *op) {
253 NodeByLabelScan *nodeByLabelScan = (NodeByLabelScan *)op;
254
255 GrB_Info info = RG_MatrixTupleIter_detach(&(nodeByLabelScan->iter));
256 ASSERT(info == GrB_SUCCESS);
257
258 if(nodeByLabelScan->child_record) {
259 OpBase_DeleteRecord(nodeByLabelScan->child_record);
260 nodeByLabelScan->child_record = NULL;
261 }
262
263 if(nodeByLabelScan->id_range) {
264 UnsignedRange_Free(nodeByLabelScan->id_range);
265 nodeByLabelScan->id_range = NULL;
266 }
267
268 if(nodeByLabelScan->n != NULL) {
269 NodeScanCtx_Free(nodeByLabelScan->n);
270 nodeByLabelScan->n = NULL;
271 }
272}

Callers

nothing calls this directly

Calls 4

OpBase_DeleteRecordFunction · 0.85
UnsignedRange_FreeFunction · 0.85
NodeScanCtx_FreeFunction · 0.85

Tested by

no test coverage detected