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:
Paul B Mahol 2022-08-07 11:30:58 +02:00 committed by pancake
parent a9956f7192
commit 9b9a7ee892

View File

@ -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");