fixed memory error in handling of (ignored) reference atts in HDF5 file
@@ -89,11 +89,13 @@ att_read_var_callbk(hid_t loc_id, const char *att_name, const H5A_info_t *ainfo,
{
if ((retval = nc4_att_list_del(&att_info->var->att, att)))
BAIL(retval);
+ att = NULL;
}
else
BAIL(retval);
}
+ if (att)
att->created = NC_TRUE;
if (attid > 0 && H5Aclose(attid) < 0)
