summaryrefslogtreecommitdiffstats
path: root/c++/src
diff options
context:
space:
mode:
authorMohamad Chaarawi <chaarawi@hdfgroup.org>2013-08-21 15:44:35 (GMT)
committerMohamad Chaarawi <chaarawi@hdfgroup.org>2013-08-21 15:44:35 (GMT)
commit78d8f8d7d12e779f640cf037bc52fd7e8a07061c (patch)
treef6a2bb20a4a34804b0253c18c205c5f77103d843 /c++/src
parentff14409081fe6a5826b25658577aaf59f8fbb78f (diff)
parent482a9c28e71b0c1b3767bcf30be3c534bbc65ed9 (diff)
downloadhdf5-78d8f8d7d12e779f640cf037bc52fd7e8a07061c.zip
hdf5-78d8f8d7d12e779f640cf037bc52fd7e8a07061c.tar.gz
hdf5-78d8f8d7d12e779f640cf037bc52fd7e8a07061c.tar.bz2
[svn-r24044] Merging r23833 through r24043 from trunk.
Diffstat (limited to 'c++/src')
-rw-r--r--c++/src/H5CommonFG.cpp6
-rw-r--r--c++/src/Makefile.in2
2 files changed, 5 insertions, 3 deletions
diff --git a/c++/src/H5CommonFG.cpp b/c++/src/H5CommonFG.cpp
index b3889a0..0651c29 100644
--- a/c++/src/H5CommonFG.cpp
+++ b/c++/src/H5CommonFG.cpp
@@ -568,8 +568,10 @@ H5std_string CommonFG::getComment( const char* name, size_t bufsize ) const
// if H5Oget_comment_by_name returns SUCCEED, return the string comment,
// otherwise, throw an exception
- if( ret_value < 0 )
- throwException("getComment", "H5Oget_comment_by_name failed");
+ if( ret_value < 0 ) {
+ delete []comment_C;
+ throwException("getComment", "H5Oget_comment_by_name failed");
+ }
H5std_string comment = H5std_string(comment_C);
delete []comment_C;
diff --git a/c++/src/Makefile.in b/c++/src/Makefile.in
index cb01519..261a7b0 100644
--- a/c++/src/Makefile.in
+++ b/c++/src/Makefile.in
@@ -467,7 +467,7 @@ CHECK_CLEANFILES = *.chkexe *.chklog *.clog
# Add libtool shared library version numbers to the HDF5 library
# See libtool versioning documentation online.
LT_VERS_INTERFACE = 6
-LT_VERS_REVISION = 146
+LT_VERS_REVISION = 152
LT_VERS_AGE = 0
# Include src directory