summaryrefslogtreecommitdiffstats
path: root/c++/src/H5Exception.cpp
diff options
context:
space:
mode:
authorBinh-Minh Ribler <bmribler@hdfgroup.org>2015-10-11 04:05:21 (GMT)
committerBinh-Minh Ribler <bmribler@hdfgroup.org>2015-10-11 04:05:21 (GMT)
commitfc84edb7e3514556e1b5cbd5268d35fcf21054b6 (patch)
tree06d36bc6f55016fc2be2dffe019a7c16f094da7e /c++/src/H5Exception.cpp
parentcd49e8a2abcd1a6fd1a4ac578cc208e2bbad1914 (diff)
downloadhdf5-fc84edb7e3514556e1b5cbd5268d35fcf21054b6.zip
hdf5-fc84edb7e3514556e1b5cbd5268d35fcf21054b6.tar.gz
hdf5-fc84edb7e3514556e1b5cbd5268d35fcf21054b6.tar.bz2
[svn-r28027] Purpose: Fix memory leaks
Description: - Removed H5Library::instance because it is unnecessary. All H5Library's methods are static. This, in turn, removed the memory leaks by H5Library::instance not being deleted. - Added ObjCreatPropList::deleteConstants to atexist() list - Cleaned up comments and format inconsistencies with 1.8 Platforms tested: Linux/32 2.6 (jam) Linux/64 (platypus) Darwin (osx1010test)
Diffstat (limited to 'c++/src/H5Exception.cpp')
-rw-r--r--c++/src/H5Exception.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/c++/src/H5Exception.cpp b/c++/src/H5Exception.cpp
index fb1e42e..1ca059b 100644
--- a/c++/src/H5Exception.cpp
+++ b/c++/src/H5Exception.cpp
@@ -309,9 +309,9 @@ const char* Exception::getCFuncName() const
//--------------------------------------------------------------------------
void Exception::printErrorStack(FILE* stream, hid_t err_stack)
{
- herr_t ret_value = H5Eprint2(err_stack, stream);
- if( ret_value < 0 )
- throw Exception( "Printing error stack", "H5Eprint2 failed" );
+ herr_t ret_value = H5Eprint2(err_stack, stream);
+ if( ret_value < 0 )
+ throw Exception( "Printing error stack", "H5Eprint2 failed" );
}
//--------------------------------------------------------------------------