[CP] Unfree ptr about connect by with index if has cycle.

This commit is contained in:
obdev 2023-04-13 08:01:01 +00:00 committed by ob-robot
parent 91e7a59753
commit 8d128c3303

View File

@ -409,6 +409,10 @@ int ObConnectByOpBFSPump::get_next_row(
ret = OB_ERR_CBY_LOOP;
LOG_WARN("there is a cycle", K(ret));
}
if (pump_node.path_node_.prior_exprs_result_ != NULL) {
allocator_.free(const_cast<ObChunkDatumStore::StoredRow *>(pump_node.path_node_.prior_exprs_result_));
pump_node.path_node_.prior_exprs_result_ = NULL;
}
} else {
next_row_found = true;
}