Subversion Repositories Kolibri OS

Rev

Rev 5197 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5197 Rev 6324
Line 1... Line 1...
1
/* hash.c -- hash table routines for BFD
1
/* hash.c -- hash table routines for BFD
2
   Copyright 1993, 1994, 1995, 1997, 1999, 2001, 2002, 2003, 2004, 2005,
-
 
3
   2006, 2007, 2009, 2010, 2011, 2012   Free Software Foundation, Inc.
2
   Copyright (C) 1993-2015 Free Software Foundation, Inc.
4
   Written by Steve Chamberlain 
3
   Written by Steve Chamberlain 
Line 5... Line 4...
5
 
4
 
Line 6... Line 5...
6
   This file is part of BFD, the Binary File Descriptor library.
5
   This file is part of BFD, the Binary File Descriptor library.
Line 391... Line 390...
391
    }
390
    }
392
  table->table = (struct bfd_hash_entry **)
391
  table->table = (struct bfd_hash_entry **)
393
      objalloc_alloc ((struct objalloc *) table->memory, alloc);
392
      objalloc_alloc ((struct objalloc *) table->memory, alloc);
394
  if (table->table == NULL)
393
  if (table->table == NULL)
395
    {
394
    {
-
 
395
      bfd_hash_table_free (table);
396
      bfd_set_error (bfd_error_no_memory);
396
      bfd_set_error (bfd_error_no_memory);
397
      return FALSE;
397
      return FALSE;
398
    }
398
    }
399
  memset ((void *) table->table, 0, alloc);
399
  memset ((void *) table->table, 0, alloc);
400
  table->size = size;
400
  table->size = size;