Skip to content

Check Connection is owned when registering Closure as hook#1764

Merged
gwenn merged 1 commit intorusqlite:masterfrom
gwenn:check_owned
Dec 2, 2025
Merged

Check Connection is owned when registering Closure as hook#1764
gwenn merged 1 commit intorusqlite:masterfrom
gwenn:check_owned

Conversation

@gwenn
Copy link
Collaborator

@gwenn gwenn commented Dec 2, 2025

If the Connection is not owned (ie Connection::from_handle), SQLite handle references dangling pointer after Connection is dropped.

If the Connection is not owned (ie Connection::from_handle), SQLite handle references dangling
pointer after Connection is dropped.
@gwenn gwenn merged commit cd39ac8 into rusqlite:master Dec 2, 2025
13 of 14 checks passed
@gwenn gwenn deleted the check_owned branch December 2, 2025 19:33
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