Skip to content

fix: free copy register when realloc fails in handle_editor - #28

Merged
markparonyan merged 1 commit into
masterfrom
issue-8
Oct 1, 2026
Merged

markparonyan merged 1 commit into
masterfrom
issue-8

Conversation

@markparonyan

@markparonyan markparonyan commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor
  • Don't assign realloc() straight to copyreg.data; free the old buffer on failure
  • The getcwd_by_pid() leak was already fixed earlier

Closes #8

@markparonyan
markparonyan merged commit 4273c9c into master Oct 1, 2026
5 checks passed
@markparonyan
markparonyan deleted the issue-8 branch October 1, 2026 12:45
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.

Memory leaks in copy mode

1 participant