2004-08-10 Andrew Cagney <cagney@gnu.org>

* defs.h (xmfree): Delete.
	* utils.c (xmfree): Delete function.
	(xfree): Inline calls to xmfree and mfree.
	* symmisc.c (free_symtab_block, free_symtab): Use xfree.
	* symfile.c (reread_symbols, init_psymbol_list): Ditto.
	* source.c (forget_cached_source_info, find_and_open_source): Ditto.
	* somread.c (som_symfile_finish): Ditto.
	* objfiles.c (allocate_objfile, free_objfile):
	* nlmread.c (nlm_symfile_finish): Ditto.
	* hpread.c (hpread_symfile_finish): Ditto.
	* elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
	* dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
	* coffread.c (coff_symfile_finish): Ditto.
This commit is contained in:
Andrew Cagney
2004-08-10 21:52:05 +00:00
parent aa2ee5f640
commit 2dc74dc121
13 changed files with 45 additions and 41 deletions

View File

@ -1037,13 +1037,6 @@ nomem (long size)
}
}
void
xmfree (void *md, void *ptr)
{
if (ptr != NULL)
mfree (md, ptr);
}
/* The xmalloc() (libiberty.h) family of memory management routines.
These are like the ISO-C malloc() family except that they implement
@ -1113,7 +1106,8 @@ xcalloc (size_t number, size_t size)
void
xfree (void *ptr)
{
xmfree (NULL, ptr);
if (ptr != NULL)
free (ptr); /* OK: free */
}