diff --git a/algo/src/main/java/org/neo4j/gds/paths/yens/Yens.java b/algo/src/main/java/org/neo4j/gds/paths/yens/Yens.java index 048878666fa..8ecc2700b17 100644 --- a/algo/src/main/java/org/neo4j/gds/paths/yens/Yens.java +++ b/algo/src/main/java/org/neo4j/gds/paths/yens/Yens.java @@ -233,8 +233,8 @@ private PriorityQueue initCandidatesQueue() { @Override public void release() { dijkstra.release(); - nodeBlackList.release(); - relationshipBlackList.release(); + nodeAvoidList.release(); + relationshipAvoidList.release(); } private Optional computeDijkstra(long sourceNode) {