JDK-8311647 : Memory leak in Java_jdk_internal_org_jline_terminal_impl_jna_linux_CLibraryImpl_ttyname_1r
  • Type: Bug
  • Component: tools
  • Sub-Component: jshell
  • Affected Version: 21,22
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2023-07-07
  • Updated: 2023-07-20
  • Resolved: 2023-07-13
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 21 JDK 22
21Fixed 22 b07Fixed
Related Reports
Relates :  
Description
Introduced by JDK-8306983. On error path, we do not `delete` the recently allocated `data`.

At least two spots:

https://github.com/openjdk/jdk/blob/0ef03f122866f010ebf50683097e9b92e41cdaad/src/jdk.internal.le/macosx/native/lible/CLibrary.cpp#L193C22-L193C22

https://github.com/openjdk/jdk/blob/0ef03f122866f010ebf50683097e9b92e41cdaad/src/jdk.internal.le/linux/native/lible/CLibrary.cpp#L189
Comments
A pull request was submitted for review. URL: https://git.openjdk.org/jdk21/pull/126 Date: 2023-07-14 09:23:38 +0000
14-07-2023

Changeset: 43099a85 Author: Jenny Shivayogi <kspeeyu@amazon.com> Committer: Paul Hohensee <phh@openjdk.org> Date: 2023-07-13 22:09:21 +0000 URL: https://git.openjdk.org/jdk/commit/43099a85b16f036666d4e93106d2908ad75f9216
13-07-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/14832 Date: 2023-07-11 16:51:15 +0000
11-07-2023