diff options
author | Robb Matzke <matzke@llnl.gov> | 1998-02-19 20:18:55 (GMT) |
---|---|---|
committer | Robb Matzke <matzke@llnl.gov> | 1998-02-19 20:18:55 (GMT) |
commit | 1bcb5fd93698a7491fae309c0a9a5006d2a560b4 (patch) | |
tree | 39bd2cf8e75280661f08706e0157c109be974fb6 /src/H5C.c | |
parent | caee4e9f6f5a5d421a8410422cce09419a72de70 (diff) | |
download | hdf5-1bcb5fd93698a7491fae309c0a9a5006d2a560b4.zip hdf5-1bcb5fd93698a7491fae309c0a9a5006d2a560b4.tar.gz hdf5-1bcb5fd93698a7491fae309c0a9a5006d2a560b4.tar.bz2 |
[svn-r294] Changes since 19980219
----------------------
./src/H5A.c
./src/H5C.c
Objects are removed from the group when there reference count
hits zero regardless of whether H5A knows how to free the
object.
./src/debug.c
./test/tstab.c
Changed a zero to H5C_DEFAULT.
Diffstat (limited to 'src/H5C.c')
-rw-r--r-- | src/H5C.c | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -251,13 +251,12 @@ H5Cclose(hid_t tid) } /* - * Chuck the object! This will fail when the reference count reaches zero - * since there is no free func registered for the property list groups. + * Chuck the object! When the reference count reaches zero then + * H5A_dec_ref() removes it from the group and we should free it. The + * free function is not registered as part of the group because it takes + * an extra argument. */ - if (H5A_dec_ref (tid)<0) { - H5ECLEAR; - H5C_close (type, tmpl); - } + if (0==H5A_dec_ref(tid)) H5C_close (type, tmpl); FUNC_LEAVE (SUCCEED); } |