Skip to content

fix: Memory leak on failed inspect hostcall#1455

Merged
TartanLlama merged 4 commits into
mainfrom
sy/memory-leak-inspect
May 8, 2026
Merged

fix: Memory leak on failed inspect hostcall#1455
TartanLlama merged 4 commits into
mainfrom
sy/memory-leak-inspect

Conversation

@TartanLlama

@TartanLlama TartanLlama commented May 5, 2026

Copy link
Copy Markdown
Contributor

In the case that inspect fails, memory for the allocated return is leaked. This PR frees it on the error path.

No test as we currently do not have LeakSanitizer support.

@TartanLlama TartanLlama merged commit 9b77977 into main May 8, 2026
29 checks passed
@TartanLlama TartanLlama deleted the sy/memory-leak-inspect branch May 8, 2026 09:29
pull Bot pushed a commit to eduardomourar/js-compute-runtime that referenced this pull request May 14, 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.

3 participants