Fix memory leak.

This commit is contained in:
Nick Clifton
1999-09-02 17:56:51 +00:00
parent 4ca72d3829
commit 4b56dbbd4a
2 changed files with 5 additions and 1 deletions

View File

@@ -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
{