Skip to content

Commit

Permalink
8309761: Leak class loader constraints
Browse files Browse the repository at this point in the history
Reviewed-by: coleenp
Backport-of: 8e4e6b0
  • Loading branch information
zhengyu123 committed Jul 7, 2023
1 parent 773bb0a commit 413ee9f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/hotspot/share/classfile/loaderConstraints.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ class ConstraintSet { // copied into hashtable as
}

~ConstraintSet() {
while (!_constraints->is_empty()) {
delete _constraints->pop();
}
delete _constraints;
}

Expand Down

0 comments on commit 413ee9f

Please sign in to comment.