Skip to content

Commit

Permalink
Fix huge leak when unloading an elf ##bin
Browse files Browse the repository at this point in the history
  • Loading branch information
radare authored and trufae committed Jan 14, 2025
1 parent 0f85675 commit a7e958f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions libr/bin/p/bin_elf.inc.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ static void destroy(RBinFile *bf) {
}
R_FREE (eo->imports_by_ord);
}
RVecRBinElfSymbol_free (eo->phdr_imports_vec);
Elf_(free) (eo);
}

Expand Down
2 changes: 1 addition & 1 deletion libr/lang/lang.c
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ R_API bool r_lang_prompt(RLang *lang) {
char buf[1024];
const char *p;

if (!lang || !lang->session) {
if (!lang->session) {
return false;
}

Expand Down

0 comments on commit a7e958f

Please sign in to comment.