Skip to content

Commit 854f87b

Browse files
committed
Fix additional potential leak
1 parent bc50b30 commit 854f87b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

java/org/apache/catalina/startup/ContextConfig.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1749,6 +1749,8 @@ private WebXml getDefaultWebXmlFragment(WebXmlParser webXmlParser) {
17491749
entry = hostWebXmlCache.get(host);
17501750
if (entry != null && entry.getGlobalTimeStamp() == globalTimeStamp &&
17511751
entry.getHostTimeStamp() == hostTimeStamp) {
1752+
InputSourceUtil.close(globalWebXml);
1753+
InputSourceUtil.close(hostWebXml);
17521754
return entry.getWebXml();
17531755
}
17541756

0 commit comments

Comments
 (0)