summaryrefslogtreecommitdiffstats
path: root/test/cmpd_dset.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/cmpd_dset.c')
-rw-r--r--test/cmpd_dset.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/cmpd_dset.c b/test/cmpd_dset.c
index 2e22206..edb3cdc 100644
--- a/test/cmpd_dset.c
+++ b/test/cmpd_dset.c
@@ -546,6 +546,8 @@ STEP 11: Write an array back to the middle third of the dataset to\n\
/* Write to disk */
status = H5Dwrite (dataset, s4_tid, s8_m_sid, s8_f_sid, PRESERVE, s11);
assert (status>=0);
+ free (s11);
+ s11=NULL;
/* Read the whole thing */
status = H5Dread (dataset, s1_tid, H5S_ALL, H5S_ALL, H5P_DEFAULT, s1);
@@ -585,6 +587,7 @@ STEP 11: Write an array back to the middle third of the dataset to\n\
/*
* Release resources.
*/
+ H5Pclose (PRESERVE);
H5Dclose (dataset);
H5Fclose (file);