diff options
author | Jonathan Kim <jkm@hdfgroup.org> | 2012-01-11 14:39:49 (GMT) |
---|---|---|
committer | Jonathan Kim <jkm@hdfgroup.org> | 2012-01-11 14:39:49 (GMT) |
commit | 429a51a6c32eb1825029337c240f7dd1a1713c4e (patch) | |
tree | 940810a4f48d65ae4111433034854c6a4ca3c332 /tools | |
parent | 00b9f24d9b161817876921a8bd983ed1d148def1 (diff) | |
download | hdf5-429a51a6c32eb1825029337c240f7dd1a1713c4e.zip hdf5-429a51a6c32eb1825029337c240f7dd1a1713c4e.tar.gz hdf5-429a51a6c32eb1825029337c240f7dd1a1713c4e.tar.bz2 |
[svn-r21872] Update a comment to make clear from the previous commit (r21869) for HDFFV-7840.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/h5repack/h5repack_refs.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/h5repack/h5repack_refs.c b/tools/h5repack/h5repack_refs.c index 5690091..5c292c7 100644 --- a/tools/h5repack/h5repack_refs.c +++ b/tools/h5repack/h5repack_refs.c @@ -534,8 +534,9 @@ static int copy_refs_attr(hid_t loc_in, H5Tclose(mtid); } - /* if don't contain reference type, free malloc for continue - * and malloc again later */ + /* if compound don't contain reference type member, free the above + * mallocs. Otherwise there can be memory leaks by the 'continue' + * statement below. */ if (!ref_comp_field_n) { if (ref_comp_index) |