diff options
author | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2014-10-02 04:32:16 (GMT) |
---|---|---|
committer | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2014-10-02 04:32:16 (GMT) |
commit | eb20ea5379968148df2035cbebdcf3311f214717 (patch) | |
tree | 8d2752e91e039088c6e2dab032c39e60ba39d09d /c++/src/H5Location.cpp | |
parent | 9c9326c7debc3b4f32602ec21cc67cfccafa6fc0 (diff) | |
download | hdf5-eb20ea5379968148df2035cbebdcf3311f214717.zip hdf5-eb20ea5379968148df2035cbebdcf3311f214717.tar.gz hdf5-eb20ea5379968148df2035cbebdcf3311f214717.tar.bz2 |
[svn-r25655] Purpose: Fixed HDFFV-8928
Description:
Followed hints from user's report on JIRA 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/H5Location.cpp')
-rw-r--r-- | c++/src/H5Location.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/c++/src/H5Location.cpp b/c++/src/H5Location.cpp index 169ddf5..70be5bf 100644 --- a/c++/src/H5Location.cpp +++ b/c++/src/H5Location.cpp @@ -554,6 +554,7 @@ H5std_string H5Location::getComment(const char* name, size_t buf_size) const ssize_t comment_len = getComment(name, tmp_len+1, comment_C); if (comment_len < 0) { + delete []comment_C; throw LocationException("H5Location::getComment", "H5Oget_comment_by_name failed"); } |