Skip to content

Commit cea8d63

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 5f15032 commit cea8d63

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-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: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,11 @@
223223
Remove support for HTTP 0.9. (markt)
224224
</update>
225225
<!-- Entries for backport and removal before 12.0.0-M1 below this line -->
226+
<fix>
227+
<bug>69936</bug>: Fix bug in previous fix for Tomcat Native crashes on
228+
shutdown that triggered a significant memory leak. Patch provided by
229+
Wes. (markt)
230+
</fix>
226231
</changelog>
227232
</subsection>
228233
<subsection name="Jasper">

0 commit comments

Comments
 (0)