mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-12 17:48:33 +00:00
Fix leak in bin_sections ##bin
No need to call strdup for last r_listinfo_new() parameter. r_listinfo_new() strdups internally.
This commit is contained in:
parent
a9956f7192
commit
9b9a7ee892
@ -2852,7 +2852,7 @@ static int bin_sections(RCore *r, PJ *pj, int mode, ut64 laddr, int va, ut64 at,
|
||||
RInterval pitv = (RInterval){s->paddr, s->size};
|
||||
RInterval vitv = (RInterval){s->vaddr, s->vsize};
|
||||
r_num_units (humansz, sizeof (humansz), s->size);
|
||||
RListInfo *info = r_listinfo_new (s->name, pitv, vitv, s->perm, strdup (humansz));
|
||||
RListInfo *info = r_listinfo_new (s->name, pitv, vitv, s->perm, humansz);
|
||||
r_list_append (list, info);
|
||||
}
|
||||
RTable *table = r_core_table (r, "sections");
|
||||
|
Loading…
x
Reference in New Issue
Block a user