From 04e424638ad15f4663f77468f70ec58b7ac8df22 Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Fri, 17 Jun 2005 21:53:53 -0500 Subject: [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 --- src/H5G.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/H5G.c b/src/H5G.c index c38bb96..06c1d33 100644 --- a/src/H5G.c +++ b/src/H5G.c @@ -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 */ -- cgit v0.12