0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-02-07 23:06:50 -05:00
This commit is contained in:
Divy Srivastava 2025-02-01 16:56:41 +05:30
parent f2ddc3b52e
commit e7e25472f4

View file

@ -382,12 +382,9 @@ impl StatementSync {
// as it lives as long as the StatementSync instance.
unsafe {
let raw = ffi::sqlite3_sql(self.inner);
let sql = std::ffi::CStr::from_ptr(raw as _)
std::ffi::CStr::from_ptr(raw as _)
.to_string_lossy()
.into_owned();
ffi::sqlite3_free(raw as _);
sql
.into_owned()
}
}