From 14068b3ba75e5ccab275b8c8eca3853b6ba4926e Mon Sep 17 00:00:00 2001 From: Jonathan Kim Date: Wed, 11 Jan 2012 09:45:29 -0500 Subject: [svn-r21873] Update a comment to make clear from the previous commit (r21870) for HDFFV-7840. --- tools/h5repack/h5repack_refs.c | 5 +++-- 1 file 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) -- cgit v0.12