Skip to content

Commit 8519963

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 c3ba42c commit 8519963

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
@@ -1457,7 +1457,7 @@ public void run() {
14571457
Lock readLock = AprStatus.getStatusLock().readLock();
14581458
readLock.lock();
14591459
try {
1460-
if (!AprStatus.isAprInitialized()) {
1460+
if (AprStatus.isAprInitialized()) {
14611461
if (networkBIO != 0) {
14621462
SSL.freeBIO(networkBIO);
14631463
}

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 10.1.52 (schultz)" 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 10.1.51 (schultz)" rtext="release in progress">
110119
<subsection name="Catalina">

0 commit comments

Comments
 (0)