diff options
author | Elena Pourmal <epourmal@hdfgroup.org> | 1998-02-09 21:10:28 (GMT) |
---|---|---|
committer | Elena Pourmal <epourmal@hdfgroup.org> | 1998-02-09 21:10:28 (GMT) |
commit | 4c2346ff5dff516e4f512d1d06e9670a4ab3964a (patch) | |
tree | 12a2f968052c5e392f66baa7ceef62899a653764 | |
parent | 7e8e3eec42254a6988b2739b621b1412963d590c (diff) | |
download | hdf5-4c2346ff5dff516e4f512d1d06e9670a4ab3964a.zip hdf5-4c2346ff5dff516e4f512d1d06e9670a4ab3964a.tar.gz hdf5-4c2346ff5dff516e4f512d1d06e9670a4ab3964a.tar.bz2 |
[svn-r231] Purpose: Fix a bug.
Problem: Data type handle was not released.
Solution: Call to H5Tclose has been added.
Platforms tested: Sun Sparc (baldric)
-rw-r--r-- | examples/h5_write.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/h5_write.c b/examples/h5_write.c index 5a8a39d..e1e5661 100644 --- a/examples/h5_write.c +++ b/examples/h5_write.c @@ -71,8 +71,9 @@ status = H5Dwrite(dataset, H5T_NATIVE_INT, H5P_ALL, H5P_ALL, /* * Close/release resources. */ -H5Dclose(dataset); H5Pclose(dataspace); +H5Tclose(datatype); +H5Dclose(dataset); H5Fclose(file); } |