diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2007-05-19 04:58:59 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2007-05-19 04:58:59 (GMT) |
commit | 52d71bcd6f19c7b0adb6544f4c79df94eb1135e4 (patch) | |
tree | cc7b05a2d59865db11f02f409ffeadb52cb2afd1 /src/H5SMcache.c | |
parent | eff3014d975a3118360fa38660af910af804cdcd (diff) | |
download | hdf5-52d71bcd6f19c7b0adb6544f4c79df94eb1135e4.zip hdf5-52d71bcd6f19c7b0adb6544f4c79df94eb1135e4.tar.gz hdf5-52d71bcd6f19c7b0adb6544f4c79df94eb1135e4.tar.bz2 |
[svn-r13770] Description:
Clean up various memory leaks, etc.
Tested on:
FreeBSD/32 6.2 (duty)
Diffstat (limited to 'src/H5SMcache.c')
-rw-r--r-- | src/H5SMcache.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5SMcache.c b/src/H5SMcache.c index 07941fb..3b85bcf 100644 --- a/src/H5SMcache.c +++ b/src/H5SMcache.c @@ -210,7 +210,7 @@ H5SM_load_table(H5F_t *f, hid_t dxpl_id, haddr_t addr, const void UNUSED *udata1 HDassert(f->shared->sohm_vers == HDF5_SHAREDHEADER_VERSION); /* Allocate space for the master table in memory */ - if(NULL == (table = (H5SM_master_table_t *)H5MM_calloc(sizeof(H5SM_master_table_t)))) + if(NULL == (table = H5FL_CALLOC(H5SM_master_table_t))) HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, NULL, "memory allocation failed") /* Read number of indexes and version from file superblock */ @@ -348,7 +348,7 @@ H5SM_dest_table(H5F_t UNUSED *f, H5SM_master_table_t* table) H5FL_ARR_FREE(H5SM_index_header_t, table->indexes); - H5MM_free(table); + H5FL_FREE(H5SM_master_table_t, table); FUNC_LEAVE_NOAPI(SUCCEED) } /* end H5SM_dest_table */ |