Skip to content

Commit ca49b27

Browse files
committed
BZ 69936: Fix for Tomcat Native crashes triggered a memory leak
Patch provided by Wes https://bz.apache.org/bugzilla/show_bug.cgi?id=69936
1 parent 6da3532 commit ca49b27

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

java/org/apache/tomcat/util/net/openssl/OpenSSLEngine.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1405,7 +1405,7 @@ public void run() {
14051405
Lock readLock = AprStatus.getStatusLock().readLock();
14061406
readLock.lock();
14071407
try {
1408-
if (!AprStatus.isAprInitialized()) {
1408+
if (AprStatus.isAprInitialized()) {
14091409
if (networkBIO != 0) {
14101410
SSL.freeBIO(networkBIO);
14111411
}

webapps/docs/changelog.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,15 @@
105105
issues do not "pop up" wrt. others).
106106
-->
107107
<section name="Tomcat 11.0.18 (markt)" rtext="in development">
108+
<subsection name="Coyote">
109+
<changelog>
110+
<fix>
111+
<bug>69936</bug>: Fix bug in previous fix for Tomcat Native crashes on
112+
shutdown that triggered a significant memory leak. Patch provided by
113+
Wes. (markt)
114+
</fix>
115+
</changelog>
116+
</subsection>
108117
</section>
109118
<section name="Tomcat 11.0.17 (markt)" rtext="release in progress">
110119
<subsection name="Catalina">

0 commit comments

Comments
 (0)