summaryrefslogtreecommitdiffstats
path: root/src/H5O.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5O.c')
-rw-r--r--src/H5O.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/H5O.c b/src/H5O.c
index 0ce00e4..001e998 100644
--- a/src/H5O.c
+++ b/src/H5O.c
@@ -269,8 +269,8 @@ done:
*
* Modifications:
*
- * Pedro Vicente, <pvn@ncsa.uiuc.edu> 22 Aug 2002
- * Added `id to name' support.
+ * Pedro Vicente, <pvn@ncsa.uiuc.edu> 22 Aug 2002
+ * Added `id to name' support.
*
*-------------------------------------------------------------------------
*/
@@ -311,10 +311,7 @@ H5O_close(H5G_entry_t *obj_ent)
/* Free the ID to name buffers */
- if ( obj_ent->name )
- obj_ent->name = H5MM_xfree(obj_ent->name);
- if ( obj_ent->old_name )
- obj_ent->old_name = H5MM_xfree(obj_ent->old_name);
+ H5G_free_ent_name(obj_ent);
done:
FUNC_LEAVE(ret_value);