summaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2019-12-08 20:43:06 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2019-12-08 20:43:06 (GMT)
commitc087ef41b637686ae5e783bfb0a48e91dbe3f58e (patch)
tree172525cb72b3f5a1877d66c3b1e3e4badbe0d9ec /java
parent1cde6b2fbabebb966cb8958ef4d81ae27cc83025 (diff)
downloadhdf5-c087ef41b637686ae5e783bfb0a48e91dbe3f58e.zip
hdf5-c087ef41b637686ae5e783bfb0a48e91dbe3f58e.tar.gz
hdf5-c087ef41b637686ae5e783bfb0a48e91dbe3f58e.tar.bz2
Add H5Rdestroy calls to cleanup
Diffstat (limited to 'java')
-rw-r--r--java/test/TestH5R.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/java/test/TestH5R.java b/java/test/TestH5R.java
index 2555db1..7b9f538 100644
--- a/java/test/TestH5R.java
+++ b/java/test/TestH5R.java
@@ -297,6 +297,7 @@ public class TestH5R {
fail("testH5Rget_object: H5Rget_obj_name: " + err);
}
assertTrue("The name of the object: ", objName.equals(name));
+ H5.H5Rdestroy(ref);
}
@Test
@@ -321,6 +322,7 @@ public class TestH5R {
fail("testH5Rget_obj_type3: H5.H5Rget_obj_type3: " + err);
}
assertEquals(obj_type, HDF5Constants.H5O_TYPE_DATASET);
+ H5.H5Rdestroy(ref);
}
@Test
@@ -348,6 +350,7 @@ public class TestH5R {
fail("testH5Rget_object: H5Rcreate_region " + err);
}
assertNotNull(ref);
+ H5.H5Rdestroy(ref);
}
// These tests need to be updated with new APIs