Skip to content

Commit 2e1cfc7

Browse files
committed
fixed a stupid bug
1 parent 6a8d5d1 commit 2e1cfc7

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

soot-infoflow/src/soot/jimple/infoflow/data/pathBuilders/ContextSensitivePathBuilder.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,13 @@ public void computeTaintPaths(Set<AbstractionAtSink> res) {
243243
* Method that is called when the taint paths have been computed
244244
*/
245245
protected void onTaintPathsComputed() {
246+
shutdown();
247+
}
248+
249+
/**
250+
* Terminates the internal executor and cleans up all resources that were used
251+
*/
252+
public void shutdown() {
246253
executor.shutdown();
247254
}
248255

soot-infoflow/src/soot/jimple/infoflow/data/pathBuilders/DefaultPathBuilderFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public void computeTaintPaths(Set<AbstractionAtSink> res) {
5656
try {
5757
super.computeTaintPaths(res);
5858
} finally {
59-
((RepeatableContextSensitivePathBuilder) innerBuilder).onTaintPathsComputed();
59+
((RepeatableContextSensitivePathBuilder) innerBuilder).shutdown();
6060
}
6161
}
6262

0 commit comments

Comments
 (0)