summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorRobb Matzke <matzke@llnl.gov>1998-05-01 05:16:50 (GMT)
committerRobb Matzke <matzke@llnl.gov>1998-05-01 05:16:50 (GMT)
commit65bb86375cfecac3e95ad1285db627a4a19eaabb (patch)
tree48151aa76db2a93929e682f3e7626d1b881364ca /test
parent59ea5ff28fb23ab4bd00f36da3268b2a0518c42c (diff)
downloadhdf5-65bb86375cfecac3e95ad1285db627a4a19eaabb.zip
hdf5-65bb86375cfecac3e95ad1285db627a4a19eaabb.tar.gz
hdf5-65bb86375cfecac3e95ad1285db627a4a19eaabb.tar.bz2
[svn-r383] ./src/H5A.c
./src/H5F.c ./src/H5G.c ./src/H5O.c ./src/H5Osdspace.c ./src/H5T.c ./src/H5Tconv.c ./src/H5Z.c ./test/big.c ./test/cmpd_dset.c ./test/dsets.c ./test/extend.c ./test/istore.c Now that I have a home-grown version of Purify I fixed all the leaks in all the test files.
Diffstat (limited to 'test')
-rw-r--r--test/big.c3
-rw-r--r--test/cmpd_dset.c3
-rw-r--r--test/dsets.c9
-rw-r--r--test/extend.c1
-rw-r--r--test/istore.c1
5 files changed, 16 insertions, 1 deletions
diff --git a/test/big.c b/test/big.c
index a75eb5d..b54a50a 100644
--- a/test/big.c
+++ b/test/big.c
@@ -68,6 +68,7 @@ writer (int wrt_n)
plist = H5Pcreate (H5P_FILE_ACCESS);
H5Pset_family (plist, 30, H5P_DEFAULT);
file = H5Fcreate (FNAME, H5F_ACC_TRUNC, H5P_DEFAULT, plist);
+ H5Pclose (plist);
/* Create simple data spaces according to the size specified above. */
space1 = H5Screate_simple (4, size1, size1);
@@ -132,6 +133,7 @@ reader (const char *script_name)
plist = H5Pcreate (H5P_FILE_ACCESS);
H5Pset_family (plist, 30, H5P_DEFAULT);
file = H5Fopen (FNAME, H5F_ACC_RDONLY, plist);
+ H5Pclose (plist);
/* Open the dataset */
d2 = H5Dopen (file, "d2");
@@ -169,6 +171,7 @@ reader (const char *script_name)
H5Sclose (mspace);
H5Sclose (fspace);
H5Fclose (file);
+ free (buf);
fclose (script);
}
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);
diff --git a/test/dsets.c b/test/dsets.c
index 6a6a92d..c532954 100644
--- a/test/dsets.c
+++ b/test/dsets.c
@@ -165,6 +165,7 @@ test_create(hid_t file)
dataset = H5Dcreate(file, DSET_CHUNKED_NAME, H5T_NATIVE_DOUBLE, space,
create_parms);
if (dataset < 0) goto error;
+ H5Pclose (create_parms);
/*
* Close the chunked dataset.
@@ -257,8 +258,9 @@ test_simple_io(hid_t file)
}
}
+ H5Pclose (xfer);
H5Dclose(dataset);
-
+ free (tconv_buf);
puts(" PASSED");
return 0;
@@ -350,6 +352,8 @@ test_tconv(hid_t file)
H5Dclose(dataset);
H5Tclose(type);
+ free (out);
+ free (in);
puts(" PASSED");
return 0;
@@ -656,7 +660,10 @@ test_compression(hid_t file)
* Cleanup
*----------------------------------------------------------------------
*/
+ H5Pclose (xfer);
+ H5Pclose (dc);
H5Dclose(dataset);
+ free (tconv_buf);
return 0;
error:
diff --git a/test/extend.c b/test/extend.c
index cbdf734..09ce489 100644
--- a/test/extend.c
+++ b/test/extend.c
@@ -64,6 +64,7 @@ main (void)
assert (status>=0);
dataset = H5Dcreate (file, "dataset", H5T_NATIVE_INT, mem_space, cparms);
assert (dataset>=0);
+ H5Pclose (cparms);
/* Write the data */
for (i=0; i<5; i++) {
diff --git a/test/istore.c b/test/istore.c
index d1c4465..2aedee2 100644
--- a/test/istore.c
+++ b/test/istore.c
@@ -673,6 +673,7 @@ main(int argc, char *argv[])
}
exit(1);
}
+ H5Pclose (template_id);
printf("All i-store tests passed.\n");
return 0;
}