From 876a3be147fbc2db7180d59366f37f5037670e88 Mon Sep 17 00:00:00 2001 From: Han Yang Date: Fri, 4 Oct 2024 22:48:29 +0800 Subject: [PATCH] Fix: no method named `free` found for mutable reference `&mut current_plugin::CurrentPlugin` in the current scope (#773) think there's a typo for this block when the `http` feature is disabled --- runtime/src/pdk.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/src/pdk.rs b/runtime/src/pdk.rs index 28881f3..b43a260 100644 --- a/runtime/src/pdk.rs +++ b/runtime/src/pdk.rs @@ -183,7 +183,7 @@ pub(crate) fn http_request( Some(h) => h, None => anyhow::bail!("http_request input is invalid: {http_req_offset}"), }; - data.free(handle)?; + data.memory_free(handle)?; let req: extism_manifest::HttpRequest = serde_json::from_slice(data.memory_bytes(handle)?)?; output[0] = Val::I64(0); anyhow::bail!(