Skip to content

Commit

Permalink
[JBWS-4048] Leak prevention
Browse files Browse the repository at this point in the history
  • Loading branch information
asoldano committed Jan 12, 2017
1 parent 48b626e commit c321649
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ private SecurityIdentity authenticate(final String username, final String passwo
context.fail();
WSLogger.ROOT_LOGGER.failedAuthenticationWithException(e, username, e.getMessage());
} finally {
if (!context.isDone()) context.fail(); //prevent leaks of RealmIdentity instances
evidence.destroy();
}
return null;
Expand Down

0 comments on commit c321649

Please sign in to comment.