| 250 | } |
| 251 | |
| 252 | static 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 | } |
nothing calls this directly
no test coverage detected