projects
/
external
/
binutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ca72d3
)
Fix memory leak.
author
Nick Clifton
<nickc@redhat.com>
Thu, 2 Sep 1999 17:56:51 +0000
(17:56 +0000)
committer
Nick Clifton
<nickc@redhat.com>
Thu, 2 Sep 1999 17:56:51 +0000
(17:56 +0000)
bfd/ChangeLog
patch
|
blob
|
history
bfd/elflink.h
patch
|
blob
|
history
diff --git
a/bfd/ChangeLog
b/bfd/ChangeLog
index
26931c2
..
c23850f
100644
(file)
--- a/
bfd/ChangeLog
+++ b/
bfd/ChangeLog
@@
-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.
diff --git
a/bfd/elflink.h
b/bfd/elflink.h
index
be38fb9
..
35bf885
100644
(file)
--- a/
bfd/elflink.h
+++ b/
bfd/elflink.h
@@
-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
{