Skip to content

Conversation

@danieldzahka
Copy link

Copying ynl_socket will result in ynl_sock_destroy() being called twice on the same ynl_sock *. Like other c++ "RAII" types that manage a resource, copying should either be deep or disallowed, and moving should be supported. This commit opts for disallowing copy construction and assignment.

Copying ynl_socket will result in ynl_sock_destroy() being called
twice on the same ynl_sock *. Like other c++ "RAII" types that manage
a resource, copying should either be deep or disallowed, and moving
should be supported. This commit opts for disallowing copy
construction and assignment.

Signed-off-by: Daniel Zahka <[email protected]>
@kuba-moo kuba-moo merged commit 2b4b874 into linux-netdev:main Oct 27, 2025
1 check passed
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.

2 participants