aboutsummaryrefslogtreecommitdiff
path: root/gas/hash.c
diff options
context:
space:
mode:
Diffstat (limited to 'gas/hash.c')
-rw-r--r--gas/hash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gas/hash.c b/gas/hash.c
index 09925f0212..655ddfcc52 100644
--- a/gas/hash.c
+++ b/gas/hash.c
@@ -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);