diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/h5_extend_write.c | 3 | ||||
-rw-r--r-- | examples/h5_group.c | 1 | ||||
-rw-r--r-- | examples/h5_select.c | 5 |
3 files changed, 8 insertions, 1 deletions
diff --git a/examples/h5_extend_write.c b/examples/h5_extend_write.c index 4fd404c..133e2aa 100644 --- a/examples/h5_extend_write.c +++ b/examples/h5_extend_write.c @@ -57,7 +57,7 @@ main (void) /* * Modify dataset creation properties, i.e. enable chunking. */ - cparms = H5Pcreate (H5P_DATASET_CREATE); + cparms = H5Pcreate(H5P_DATASET_CREATE); status = H5Pset_chunk( cparms, RANK, chunk_dims); /* @@ -165,6 +165,7 @@ main (void) H5Dclose(dataset); H5Sclose(dataspace); H5Sclose(filespace); + H5Pclose(cparms); H5Fclose(file); return 0; diff --git a/examples/h5_group.c b/examples/h5_group.c index 72982ec..2900a7b 100644 --- a/examples/h5_group.c +++ b/examples/h5_group.c @@ -78,6 +78,7 @@ main(void) */ H5Sclose(dataspace); H5Dclose(dataset); + H5Pclose(plist); H5Fclose(file); /* diff --git a/examples/h5_select.c b/examples/h5_select.c index 0ff9de1..ad41536 100644 --- a/examples/h5_select.c +++ b/examples/h5_select.c @@ -302,6 +302,11 @@ main (void) * Close dataset. */ ret = H5Dclose(dataset); + + /* + * Close property list + */ + ret = H5Pclose(plist); /* * Close the file. |