diff options
author | Raymond Lu <songyulu@hdfgroup.org> | 2001-10-03 17:57:56 (GMT) |
---|---|---|
committer | Raymond Lu <songyulu@hdfgroup.org> | 2001-10-03 17:57:56 (GMT) |
commit | e3a137f39e80b6fe7271f18d2009865823f95f43 (patch) | |
tree | 8f16768f0622101ebb308a824560fc16e73732a0 /examples | |
parent | 7666ce56d350ee6e65af4736ae3455916a86aadd (diff) | |
download | hdf5-e3a137f39e80b6fe7271f18d2009865823f95f43.zip hdf5-e3a137f39e80b6fe7271f18d2009865823f95f43.tar.gz hdf5-e3a137f39e80b6fe7271f18d2009865823f95f43.tar.bz2 |
[svn-r4517]
Purpose:
Changed to the new generic property list for dataset creation property
list.
Platforms tested:
Arabica, modi4 and Hawkwind
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. |