mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-27 23:20:40 +00:00
Fix memleak in the reloc fixups patcher
This commit is contained in:
parent
4d31bbb7fe
commit
48378ddab9
@ -53,7 +53,9 @@ static bool load_buffer(RBinFile *bf, void **bin_obj, RBuffer *buf, ut64 loadadd
|
||||
if (res) {
|
||||
if (res->chained_starts) {
|
||||
RIO *io = bf->rbin->iob.io;
|
||||
bf->buf = swizzle_io_read (res, io);
|
||||
RBuffer *nb = swizzle_io_read (res, io);
|
||||
r_buf_free (bf->buf);
|
||||
bf->buf = nb;
|
||||
}
|
||||
sdb_ns_set (sdb, "info", res->kv);
|
||||
*bin_obj = res;
|
||||
|
Loading…
Reference in New Issue
Block a user