diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2005-06-18 02:53:53 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2005-06-18 02:53:53 (GMT) |
commit | 04e424638ad15f4663f77468f70ec58b7ac8df22 (patch) | |
tree | 8115d6bd7f16e8430b912ec51ca9038007d7b9cc /src/H5G.c | |
parent | 6d54505653ac5d41fda3ae244cab8eee8a84dada (diff) | |
download | hdf5-04e424638ad15f4663f77468f70ec58b7ac8df22.zip hdf5-04e424638ad15f4663f77468f70ec58b7ac8df22.tar.gz hdf5-04e424638ad15f4663f77468f70ec58b7ac8df22.tar.bz2 |
[svn-r10949] Purpose:
Bug fix
Description:
George Lewandowski @ Boeing tracked down a memory leak and possible
corruption in the code for opening a group.
Solution:
Change code to allocate correct structure.
Platforms tested:
FreeBSD 4.11 (sleipnir)
Too minor to require h5committest
Diffstat (limited to 'src/H5G.c')
-rw-r--r-- | src/H5G.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2014,7 +2014,7 @@ H5G_open_oid(H5G_entry_t *ent, hid_t dxpl_id) /* Open the object, making sure it's a group */ if (NULL==(grp = H5FL_CALLOC(H5G_t))) HGOTO_ERROR (H5E_RESOURCE, H5E_NOSPACE, NULL, "memory allocation failed"); - if (NULL==(grp->shared = H5FL_CALLOC(H5G_t))) + if (NULL==(grp->shared = H5FL_CALLOC(H5G_shared_t))) HGOTO_ERROR (H5E_RESOURCE, H5E_NOSPACE, NULL, "memory allocation failed"); /* Copy over (take ownership) of the group entry object */ |