From 43c0159ad8be580168aa794b1a3c411a7f1d7747 Mon Sep 17 00:00:00 2001 From: Lncvrt Date: Wed, 7 Jan 2026 16:48:16 -0700 Subject: [PATCH] Fix memory not being free'd immediately for when a update downloads --- src-tauri/src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index 9098be0..fbf532e 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -60,6 +60,8 @@ async fn download(app: AppHandle, url: String, hash: String) -> String { return "-3".to_string(); } + drop(bytes); + #[cfg(any(target_os = "linux", target_os = "macos"))] { use std::{fs, os::unix::fs::PermissionsExt};