diff options
author | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2014-10-01 04:05:57 (GMT) |
---|---|---|
committer | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2014-10-01 04:05:57 (GMT) |
commit | 22d0d32716a588063970a7e412d69a2937118034 (patch) | |
tree | 5e4511f0606a402590f3a27ea793006cf4db274e /c++/src/H5EnumType.cpp | |
parent | 10f1e6acf8916a429f2cc925f49518cfc0015b6c (diff) | |
download | hdf5-22d0d32716a588063970a7e412d69a2937118034.zip hdf5-22d0d32716a588063970a7e412d69a2937118034.tar.gz hdf5-22d0d32716a588063970a7e412d69a2937118034.tar.bz2 |
[svn-r25644] Purpose: Fixed HDFFV-8928
Description:
Followed hints on the JIRA issue to remove several potential memory
leaks.
Platforms tested:
Linux/ppc64 (ostrich)
Linux/32 2.6 (jam)
SunOS 5.11 (emu)
Diffstat (limited to 'c++/src/H5EnumType.cpp')
-rw-r--r-- | c++/src/H5EnumType.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/c++/src/H5EnumType.cpp b/c++/src/H5EnumType.cpp index 04bb9e0..a91c053 100644 --- a/c++/src/H5EnumType.cpp +++ b/c++/src/H5EnumType.cpp @@ -159,6 +159,7 @@ H5std_string EnumType::nameOf( void *value, size_t size ) const // If H5Tenum_nameof returns a negative value, raise an exception, if( ret_value < 0 ) { + delete []name_C; throw DataTypeIException("EnumType::nameOf", "H5Tenum_nameof failed"); } // otherwise, create the string to hold the datatype name and return it |