summaryrefslogtreecommitdiffstats
path: root/c++/src
diff options
context:
space:
mode:
authorLarry Knox <lrknox@hdfgroup.org>2018-03-15 18:08:00 (GMT)
committerLarry Knox <lrknox@hdfgroup.org>2018-03-15 18:08:00 (GMT)
commitf398e7770774841570832617b0e4f8ea85f6d693 (patch)
treecc08f983062dd8e0c0cd7ab1ce5f11b563df9bd4 /c++/src
parent429843a5b9299a6b93f4d3b28ff794ccb88fe950 (diff)
parent02a9433fa0aac34ae81ab5f0d5b97a7934881215 (diff)
downloadhdf5-f398e7770774841570832617b0e4f8ea85f6d693.zip
hdf5-f398e7770774841570832617b0e4f8ea85f6d693.tar.gz
hdf5-f398e7770774841570832617b0e4f8ea85f6d693.tar.bz2
Merge pull request #965 in HDFFV/hdf5 from develop to hdf5_1_10
* commit '02a9433fa0aac34ae81ab5f0d5b97a7934881215': Add 2 parallel test files to CHECK-CLEANFILES so that if their tests fail before removing them, make check-clean will remove them. Fixed memory leak Description: Added LinkCreatPropList to initH5cpp to cleaning up resource at exit. Platforms tested: Linux/64 (jelly) Linux/ppc64 (ostrich) HDFFV-10412 add note for new H5error_on Java API
Diffstat (limited to 'c++/src')
-rw-r--r--c++/src/H5Library.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/c++/src/H5Library.cpp b/c++/src/H5Library.cpp
index 55f82f5..2cbdfba 100644
--- a/c++/src/H5Library.cpp
+++ b/c++/src/H5Library.cpp
@@ -188,6 +188,10 @@ void H5Library::initH5cpp()
if (ret_value != 0)
throw LibraryIException("H5Library::initH5cpp", "Registrating LinkAccPropList::deleteConstants failed");
+ ret_value = std::atexit(LinkCreatPropList::deleteConstants);
+ if (ret_value != 0)
+ throw LibraryIException("H5Library::initH5cpp", "Registrating LinkCreatPropList::deleteConstants failed");
+
ret_value = std::atexit(FileAccPropList::deleteConstants);
if (ret_value != 0)
throw LibraryIException("H5Library::initH5cpp", "Registrating FileAccPropList::deleteConstants failed");