summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorElena Pourmal <epourmal@hdfgroup.org>1998-02-09 21:10:28 (GMT)
committerElena Pourmal <epourmal@hdfgroup.org>1998-02-09 21:10:28 (GMT)
commit4c2346ff5dff516e4f512d1d06e9670a4ab3964a (patch)
tree12a2f968052c5e392f66baa7ceef62899a653764 /examples
parent7e8e3eec42254a6988b2739b621b1412963d590c (diff)
downloadhdf5-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)
Diffstat (limited to 'examples')
-rw-r--r--examples/h5_write.c3
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);
}