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

Function Proc_BFS_Free

src/procedures/proc_bfs.c:220–236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

218}
219
220static ProcedureResult Proc_BFS_Free
221(
222 ProcedureCtx *ctx
223) {
224 ASSERT(ctx != NULL);
225
226 // free private data
227 BFSCtx *pdata = ctx->privateData;
228
229 if(pdata->output != NULL) array_free(pdata->output);
230 if(pdata->nodes != NULL) GrB_Vector_free(&pdata->nodes);
231 if(pdata->parents != NULL) GrB_Vector_free(&pdata->parents);
232
233 rm_free(ctx->privateData);
234
235 return PROCEDURE_OK;
236}
237
238static BFSCtx *_Build_Private_Data() {
239 // set up the BFS context

Callers

nothing calls this directly

Calls 3

array_freeFunction · 0.85
GrB_Vector_freeFunction · 0.85
rm_freeFunction · 0.85

Tested by

no test coverage detected