Skip to content

ndk: pop local frame on missing string id in jni_get_string - #38

Closed
RebornTGW wants to merge 1 commit into
petabyt:masterfrom
RebornTGW:fix-jni-local-frame-leak
Closed

RebornTGW wants to merge 1 commit into
petabyt:masterfrom
RebornTGW:fix-jni-local-frame-leak

Conversation

@RebornTGW

Copy link
Copy Markdown

Fixes #37.

jni_get_string calls PushLocalFrame and then returns early when jni_get_res_id returns 0, leaving the frame pushed. This pops the frame before that early return, matching the normal path.

Not built locally (no NDK on this machine); the change is limited to the early-return branch.

🤖 Generated with Claude Code

…tabyt#37)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@petabyt

petabyt commented Dec 4, 2026

Copy link
Copy Markdown
Owner

fixed. function is currently dead

@petabyt petabyt closed this Dec 4, 2026
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.

jni_get_string leaks a JNI local frame when the resource id is 0

2 participants