Skip to content

Commit

Permalink
kernel/load_self: fix memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
bookmist committed Apr 24, 2024
1 parent d49480f commit 47de017
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vita3k/kernel/src/load_self.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ static bool load_var_exports(const uint32_t *nids, const Ptr<uint32_t> *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();
}

Expand Down

0 comments on commit 47de017

Please sign in to comment.