From 47de017b71fbef9db4d5907006630072c604cd73 Mon Sep 17 00:00:00 2001 From: bookmist Date: Thu, 18 Apr 2024 20:55:54 +0300 Subject: [PATCH] kernel/load_self: fix memory leak --- vita3k/kernel/src/load_self.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vita3k/kernel/src/load_self.cpp b/vita3k/kernel/src/load_self.cpp index a375ee85c7..b159301c6b 100644 --- a/vita3k/kernel/src/load_self.cpp +++ b/vita3k/kernel/src/load_self.cpp @@ -336,7 +336,7 @@ static bool load_var_exports(const uint32_t *nids, const Ptr *entries, auto nid_it = kernel.export_nids.find(nid); if (nid_it != kernel.export_nids.end()) { LOG_DEBUG("Found previously not found variable. nid:{}, new_entry_point:{}", log_hex(nid), log_hex(entry.address())); - Address old_entry_address = kernel.export_nids[nid]; + old_entry_address = kernel.export_nids[nid]; kernel.export_nids[nid] = entry.address(); }