This is an automated email from the ASF dual-hosted git repository.

markt-asf pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/main by this push:
     new 854f87bef8 Fix additional potential leak
854f87bef8 is described below

commit 854f87bef8670c39e84ec10476804175cc9d8726
Author: Mark Thomas <[email protected]>
AuthorDate: Tue Jun 30 20:11:04 2026 +0100

    Fix additional potential leak
---
 java/org/apache/catalina/startup/ContextConfig.java | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/java/org/apache/catalina/startup/ContextConfig.java 
b/java/org/apache/catalina/startup/ContextConfig.java
index 25f9899914..77e518fa43 100644
--- a/java/org/apache/catalina/startup/ContextConfig.java
+++ b/java/org/apache/catalina/startup/ContextConfig.java
@@ -1749,6 +1749,8 @@ public class ContextConfig implements LifecycleListener {
             entry = hostWebXmlCache.get(host);
             if (entry != null && entry.getGlobalTimeStamp() == globalTimeStamp 
&&
                     entry.getHostTimeStamp() == hostTimeStamp) {
+                InputSourceUtil.close(globalWebXml);
+                InputSourceUtil.close(hostWebXml);
                 return entry.getWebXml();
             }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to