You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2026/06/30 19:11:25 UTC
(tomcat) branch main updated: Fix additional potential leak
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 <ma...@apache.org>
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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org