We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9f99a8f commit df1b9b0Copy full SHA for df1b9b0
sqlx-core/src/sqlite/connection/collation.rs
@@ -69,6 +69,8 @@ where
69
if r == SQLITE_OK {
70
Ok(())
71
} else {
72
+ // The xDestroy callback is not called if the sqlite3_create_collation_v2() function fails.
73
+ drop(unsafe { Box::from_raw(boxed_f) });
74
Err(Error::Database(Box::new(SqliteError::new(handle.as_ptr()))))
75
}
76
0 commit comments