summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorJonathan Kim <jkm@hdfgroup.org>2012-01-11 14:45:29 (GMT)
committerJonathan Kim <jkm@hdfgroup.org>2012-01-11 14:45:29 (GMT)
commit14068b3ba75e5ccab275b8c8eca3853b6ba4926e (patch)
tree9b2aded59d8e2f08bf8c0d11ce0bbc0fa25185b6 /tools
parent5540ecb72d231bbd8800195fd7924b05612017c2 (diff)
downloadhdf5-14068b3ba75e5ccab275b8c8eca3853b6ba4926e.zip
hdf5-14068b3ba75e5ccab275b8c8eca3853b6ba4926e.tar.gz
hdf5-14068b3ba75e5ccab275b8c8eca3853b6ba4926e.tar.bz2
[svn-r21873] Update a comment to make clear from the previous commit (r21870) for HDFFV-7840.
Diffstat (limited to 'tools')
-rw-r--r--tools/h5repack/h5repack_refs.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/h5repack/h5repack_refs.c b/tools/h5repack/h5repack_refs.c
index f7103ad..a79326d 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)