From e7faec6b0ef7eefc39f99a00fab21c1795182a58 Mon Sep 17 00:00:00 2001 From: Elad <18193363+elad335@users.noreply.github.com> Date: Fri, 15 Nov 2024 14:00:30 +0200 Subject: [PATCH] util/vm_native.cpp: Fix memory leak --- rpcs3/util/vm_native.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/util/vm_native.cpp b/rpcs3/util/vm_native.cpp index 0d566e3532..8c9a5dd693 100644 --- a/rpcs3/util/vm_native.cpp +++ b/rpcs3/util/vm_native.cpp @@ -139,7 +139,7 @@ namespace utils const u64 map_size = s_is_mapping.size(); - for (u64 i = map_size; i != umax; i--) + for (u64 i = map_size - 1; i != umax; i--) { auto& info = s_is_mapping[i];