Author: markt Date: Mon Nov 21 16:53:40 2016 New Revision: 1770718 URL: http://svn.apache.org/viewvc?rev=1770718&view=rev Log: Fix https://bz.apache.org/bugzilla/show_bug.cgi?id=60379 Dispose of the GSS credential once it is no longer required. Patch provided by Michael Osipov.
Modified: tomcat/trunk/java/org/apache/catalina/realm/GenericPrincipal.java tomcat/trunk/webapps/docs/changelog.xml Modified: tomcat/trunk/java/org/apache/catalina/realm/GenericPrincipal.java URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/realm/GenericPrincipal.java?rev=1770718&r1=1770717&r2=1770718&view=diff ============================================================================== --- tomcat/trunk/java/org/apache/catalina/realm/GenericPrincipal.java (original) +++ tomcat/trunk/java/org/apache/catalina/realm/GenericPrincipal.java Mon Nov 21 16:53:40 2016 @@ -242,6 +242,9 @@ public class GenericPrincipal implements if (loginContext != null) { loginContext.logout(); } + if (gssCredential != null) { + gssCredential.dispose(); + } } Modified: tomcat/trunk/webapps/docs/changelog.xml URL: http://svn.apache.org/viewvc/tomcat/trunk/webapps/docs/changelog.xml?rev=1770718&r1=1770717&r2=1770718&view=diff ============================================================================== --- tomcat/trunk/webapps/docs/changelog.xml (original) +++ tomcat/trunk/webapps/docs/changelog.xml Mon Nov 21 16:53:40 2016 @@ -75,6 +75,10 @@ embedded mode. (remm) </update> <fix> + <bug>60379</bug>: Dispose of the GSS credential once it is no longer + required. Patch provided by Michael Osipov. (markt) + </fix> + <fix> <bug>60387</bug>: Correct the javadoc for <code>o.a.catalina.AccessLog.setRequestAttributesEnabled</code>. The default value is different for the different implementations. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org