mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-23 11:39:26 +08:00
Fix memory leak.
This commit is contained in:
@ -1,3 +1,7 @@
|
||||
1999-09-02 Nick Clifton <nickc@cygnus.com>
|
||||
|
||||
* elflink.h (elf_gc_record_vtentry): Fix memory leak.
|
||||
|
||||
Wed Sep 1 13:34:29 1999 Jeffrey A Law (law@cygnus.com)
|
||||
|
||||
* elf-hppa.h (elf_hppa_add_symbol_hook): New function.
|
||||
|
@ -6403,7 +6403,7 @@ elf_gc_record_vtentry (abfd, sec, h, addend)
|
||||
return false;
|
||||
|
||||
oldbytes = (h->vtable_entries_size/FILE_ALIGN + 1) * sizeof(boolean);
|
||||
memset (ptr + oldbytes, 0, bytes - oldbytes);
|
||||
memset (((char *)ptr) + oldbytes, 0, bytes - oldbytes);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user