Skip to content

Fix double-free in FreeBSD socket-table error handling - #387

Open
hugojosealmeida wants to merge 1 commit into
lsof-org:masterfrom
hugojosealmeida:fix/freebsd-pcb-error-double-free
Open

hugojosealmeida wants to merge 1 commit into
lsof-org:masterfrom
hugojosealmeida:fix/freebsd-pcb-error-double-free

Conversation

@hugojosealmeida

@hugojosealmeida hugojosealmeida commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

Leave buffer cleanup to the caller and correctly return UDP errors. This prevents double-free crashes when sysctl reads fail. Verified with AddressSanitizer and isolated fault-injection cases.

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.

1 participant