Skip to content

Commit 9160720

Browse files
committed
multi-thread leak
1 parent f65590f commit 9160720

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

CMakeLists.txt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -515,9 +515,11 @@ install(DIRECTORY include/sta DESTINATION include)
515515

516516
################################################################
517517

518-
add_custom_target(tags etags -o TAGS
518+
add_custom_target(sta_tags etags -o TAGS
519519
${STA_SOURCE}
520-
*/*.hh include/sta/*.hh
521-
${STA_TCL_FILES} ${SWIG_TCL_FILES}
520+
*/*.hh
521+
include/sta/*.hh
522+
${STA_TCL_FILES}
523+
${SWIG_TCL_FILES}
522524
WORKING_DIRECTORY ${STA_HOME}
523525
)

search/Bfs.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,8 @@ BfsIterator::visitParallel(Level to_level,
189189
level_vertices.clear();
190190
}
191191
}
192+
for (VertexVisitor *visitor : visitors)
193+
delete visitor;
192194
}
193195
}
194196
return visit_count;

0 commit comments

Comments
 (0)