summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
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);
}