Skip to content

Fix double free when an outstation server fails to bind - #469

Merged
jadamcrain merged 3 commits into
mainfrom
fix-server-bind-double-free
Oct 12, 2026
Merged

jadamcrain merged 3 commits into
mainfrom
fix-server-bind-double-free

Conversation

@jadamcrain

Copy link
Copy Markdown
Member

Closes #467.

@jadamcrain
jadamcrain force-pushed the fix-server-bind-double-free branch from f7629b1 to 7bdaedd Compare October 12, 2026 20:22
outstation_server_bind took ownership of the server and freed it on any
error, while the caller still held the pointer and freed it again on
destroy. Borrow the server instead and mark it as failed if binding
consumes it without succeeding.

Closes #467.
@jadamcrain
jadamcrain force-pushed the fix-server-bind-double-free branch from 7bdaedd to 613898b Compare October 12, 2026 20:36
@jadamcrain
jadamcrain merged commit 9dd333a into main Oct 12, 2026
34 checks passed
@jadamcrain
jadamcrain deleted the fix-server-bind-double-free branch October 12, 2026 23:56
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.

Double free when an outstation server fails to bind in the bindings

1 participant