mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-19 17:18:24 +08:00
objdump -G memory leak
* objdump.c (find_stabs_section): Free stabs.
This commit is contained in:
@ -4603,7 +4603,10 @@ find_stabs_section (bfd *abfd, asection *section, void *names)
|
|||||||
{
|
{
|
||||||
stabs = read_section_stabs (abfd, section->name, &stab_size, NULL);
|
stabs = read_section_stabs (abfd, section->name, &stab_size, NULL);
|
||||||
if (stabs)
|
if (stabs)
|
||||||
print_section_stabs (abfd, section->name, &sought->string_offset);
|
{
|
||||||
|
print_section_stabs (abfd, section->name, &sought->string_offset);
|
||||||
|
free (stabs);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user