Merge branch 'fix-windows-leak' into 'main'

Fix windows leak

See merge request veilid/veilid!288
This commit is contained in:
Christien Rioux 2024-06-30 03:46:27 +00:00
commit beeeedbfac
4 changed files with 10 additions and 9 deletions

View File

@ -197,7 +197,7 @@ wasm-bindgen = "0.2.89"
js-sys = "0.3.66"
wasm-bindgen-futures = "0.4.39"
send_wrapper = { version = "0.6.0", features = ["futures"] }
serde_bytes = { version = "0.11", default_features = false, features = [
serde_bytes = { version = "0.11", default-features = false, features = [
"alloc",
] }
tsify = { version = "0.4.5", features = ["js"] }

View File

@ -169,6 +169,7 @@ pub async fn ptr_lookup(ip_addr: IpAddr) -> EyreResult<String> {
let c_str: &CStr = CStr::from_ptr(p_name_host.0 as *const i8);
if let Ok(str_slice) = c_str.to_str() {
let str_buf: String = str_slice.to_owned();
DnsFree(Some(p_query_results as *const c_void), DnsFreeRecordList);
return Ok(str_buf);
}
}

View File

@ -37,10 +37,10 @@ packages:
dependency: transitive
description:
name: change_case
sha256: "47c48c36f95f20c6d0ba03efabceff261d05026cca322cc2c4c01c343371b5bb"
sha256: "99cfdf2018c627c8a3af5a23ea4c414eb69c75c31322d23b9660ebc3cf30b514"
url: "https://pub.dev"
source: hosted
version: "2.0.1"
version: "2.1.0"
characters:
dependency: transitive
description:
@ -138,10 +138,10 @@ packages:
dependency: "direct main"
description:
name: flutter_acrylic
sha256: a9a1fdf91ff1fb47858fd82507f57e255a132a5d355056694fdb9fd303633b18
sha256: b3996dbde5abf5823cc9ead4cf2e5267c3181f15585fe47ce4dc4472e7ec827a
url: "https://pub.dev"
source: hosted
version: "1.1.3"
version: "1.1.4"
flutter_driver:
dependency: transitive
description: flutter
@ -283,10 +283,10 @@ packages:
dependency: transitive
description:
name: path_provider_android
sha256: a248d8146ee5983446bf03ed5ea8f6533129a12b11f12057ad1b4a67a2b3b41d
sha256: bca87b0165ffd7cdb9cad8edd22d18d2201e886d9a9f19b4fb3452ea7df3a72a
url: "https://pub.dev"
source: hosted
version: "2.2.4"
version: "2.2.6"
path_provider_foundation:
dependency: transitive
description:
@ -508,4 +508,4 @@ packages:
version: "0.0.6"
sdks:
dart: ">=3.4.0 <4.0.0"
flutter: ">=3.19.1"
flutter: ">=3.22.0"

View File

@ -29,7 +29,7 @@ cfg-if = "^1"
wasm-bindgen-futures = "^0"
js-sys = "^0"
serde_json = "^1"
serde_bytes = { version = "0.11", default_features = false, features = [
serde_bytes = { version = "0.11", default-features = false, features = [
"alloc",
] }
serde = "^1"