mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-03 20:22:38 +00:00
class.c: add missing free to avoid a memleak (#7549)
This commit is contained in:
parent
0604daeaab
commit
435ecdef66
@ -3756,6 +3756,7 @@ R_API RBinJavaAttrInfo *r_bin_java_line_number_table_attr_new(ut8 *buffer, ut64
|
||||
ut32 linenum_len = attr->info.line_number_table_attr.line_number_table_length;
|
||||
RList *linenum_list = attr->info.line_number_table_attr.line_number_table;
|
||||
if (linenum_len > sz) {
|
||||
free (attr);
|
||||
return NULL;
|
||||
}
|
||||
for (i = 0; i < linenum_len; i++) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user