X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gas%2Fhash.c;h=cfffede7e2e909648894c2aacafa28318b32b93b;hb=cedfc77485dbb566619dc1e2d729ce0a70d1a4ad;hp=09925f02120612ccef59f7a9a6fb26408cc170f1;hpb=6f2750feaf2827ef8a1a0a5b2f90c1e9a6cabbd1;p=deliverable%2Fbinutils-gdb.git diff --git a/gas/hash.c b/gas/hash.c index 09925f0212..cfffede7e2 100644 --- a/gas/hash.c +++ b/gas/hash.c @@ -1,5 +1,5 @@ /* hash.c -- gas hash table code - Copyright (C) 1987-2016 Free Software Foundation, Inc. + Copyright (C) 1987-2019 Free Software Foundation, Inc. This file is part of GAS, the GNU Assembler. @@ -87,7 +87,7 @@ hash_new_sized (unsigned long size) unsigned long alloc; struct hash_control *ret; - ret = (struct hash_control *) xmalloc (sizeof *ret); + ret = XNEW (struct hash_control); obstack_begin (&ret->memory, chunksize); alloc = size * sizeof (struct hash_entry *); ret->table = (struct hash_entry **) obstack_alloc (&ret->memory, alloc);