Skip to content

Commit

Permalink
Add note regarding rz_bin_reloc_free and bin_coff (#4488)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazarmy authored May 12, 2024
1 parent 524119c commit 0a05e42
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions librz/bin/bin.c
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,9 @@ RZ_API void rz_bin_reloc_free(RZ_NULLABLE RzBinReloc *reloc) {
* TODO: leak in bin_elf, but it will cause double free in bin_pe if free here,
* Because in the bin_elf implementation RzBinObject->imports and RzBinObject->relocs->imports
* are two pieces of data, but they are linked to each other in bin_pe
* TODO: also, double free in bin_coff if free here,
* Because in the bin_coff implementation imports and symbols are shared
* between relocs
*/
// rz_bin_import_free(reloc->import);
// rz_bin_symbol_free(reloc->symbol);
Expand Down

0 comments on commit 0a05e42

Please sign in to comment.