Skip to content

Fix mem leak in windows openPort#203

Open
hiddenalpha wants to merge 1 commit into
java-native:masterfrom
hiddenalpha:FixReportedMemLeakInWindowsOpenPort-20260703
Open

Fix mem leak in windows openPort#203
hiddenalpha wants to merge 1 commit into
java-native:masterfrom
hiddenalpha:FixReportedMemLeakInWindowsOpenPort-20260703

Conversation

@hiddenalpha

@hiddenalpha hiddenalpha commented Jul 3, 2026

Copy link
Copy Markdown

As reported in issue 202

Edit: Closes #202

@hiddenalpha hiddenalpha force-pushed the FixReportedMemLeakInWindowsOpenPort-20260703 branch from ff89076 to 414b776 Compare July 3, 2026 11:14
- Fix mem leak in windows `openPort()`
- Report bad `portName` as `IllegalArgumentException`

Edit:
- Fix C++
- Fix paranoid compiler error about init jump.
- Fix unrelated compiler warning about bad printf format.

Fixes: java-native#202
Squashed-From: fac883c7f40c97263e3a947577636cdc6de1c964
@hiddenalpha hiddenalpha force-pushed the FixReportedMemLeakInWindowsOpenPort-20260703 branch from 414b776 to 540f857 Compare July 3, 2026 11:25
@hiddenalpha hiddenalpha marked this pull request as ready for review July 3, 2026 11:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Possible string leak and null dereference in Windows openPort()

2 participants