Skip to content

Commit

Permalink
add error message when temp edges are not removed
Browse files Browse the repository at this point in the history
  • Loading branch information
abyrd committed Mar 21, 2013
1 parent 8b5b0a7 commit 5e4f953
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,8 @@ public int removeTemporaryEdges() {
*/
@Override
public void finalize() {
removeTemporaryEdges();
if (removeTemporaryEdges() > 0)
LOG.error("Temporary edges were removed by finalizer: this is a memory leak.");
}

}

0 comments on commit 5e4f953

Please sign in to comment.