diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2005-12-26 05:28:18 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2005-12-26 05:28:18 (GMT) |
commit | 83929ea716220890e41f923566aa5c89e8e735d3 (patch) | |
tree | 22193da0d9129fc7c06a57db35b2f4a57458cf50 /src/H5Olink.c | |
parent | db551ec15e771b4536c35cc6f3eabb7d28681510 (diff) | |
download | hdf5-83929ea716220890e41f923566aa5c89e8e735d3.zip hdf5-83929ea716220890e41f923566aa5c89e8e735d3.tar.gz hdf5-83929ea716220890e41f923566aa5c89e8e735d3.tar.bz2 |
[svn-r11838] Purpose:
Bug fix
Description:
Retrieving an object's name could fail (in various ways) under certain
circumstances (mostly having to do with mounted files).
Solution:
Re-write & simplify "get object name" code to fix error in a better way
than adding yet another hack to the previous pile of hacks... :-)
Platforms tested:
FreeBSD 4.11 (sleipnir)
h5committest
Diffstat (limited to 'src/H5Olink.c')
-rw-r--r-- | src/H5Olink.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/H5Olink.c b/src/H5Olink.c index 062359b..d9c84c7 100644 --- a/src/H5Olink.c +++ b/src/H5Olink.c @@ -409,9 +409,7 @@ H5O_link_free(void *_mesg) HDassert(lnk); /* Free information for link */ - if(lnk->type == H5G_LINK_SOFT) - lnk->u.soft.name = H5MM_xfree(lnk->u.soft.name); - lnk->name = H5MM_xfree(lnk->name); + H5O_link_reset(lnk); H5FL_FREE(H5O_link_t, lnk); FUNC_LEAVE_NOAPI(SUCCEED) |