aboutsummaryrefslogtreecommitdiff
path: root/bfd/elflink.h
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>1999-09-02 17:56:51 +0000
committerNick Clifton <nickc@redhat.com>1999-09-02 17:56:51 +0000
commit4b56dbbd4a977c0ffc638550051fd37c08eb2b2e (patch)
tree78f667030bb9e9bcdd14201c6c0e1df42c73f5c1 /bfd/elflink.h
parent4ca72d382982b09b4a838e6170792d657cc707ff (diff)
downloadgdb-4b56dbbd4a977c0ffc638550051fd37c08eb2b2e.zip
gdb-4b56dbbd4a977c0ffc638550051fd37c08eb2b2e.tar.gz
gdb-4b56dbbd4a977c0ffc638550051fd37c08eb2b2e.tar.bz2
Fix memory leak.
Diffstat (limited to 'bfd/elflink.h')
-rw-r--r--bfd/elflink.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elflink.h b/bfd/elflink.h
index be38fb9..35bf885 100644
--- 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
{