summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>1999-08-27 22:03:21 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>1999-08-27 22:03:21 (GMT)
commit58c2ef0ded9caa8cda21a60798a2a5723d29c5d6 (patch)
tree4083acb4d62c8c43058a1659d4581dd03711af11 /src
parentabaa7f6e9aae7d2b6e3a09d50e0ac6485d2f8a31 (diff)
downloadhdf5-58c2ef0ded9caa8cda21a60798a2a5723d29c5d6.zip
hdf5-58c2ef0ded9caa8cda21a60798a2a5723d29c5d6.tar.gz
hdf5-58c2ef0ded9caa8cda21a60798a2a5723d29c5d6.tar.bz2
[svn-r1610] Fixed bug in attribute writing which was causing core dump if an attribute was
read back in immediately after being written out (without closing the attribute in between).
Diffstat (limited to 'src')
-rw-r--r--src/H5A.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/H5A.c b/src/H5A.c
index a01e652..8c113e1 100644
--- a/src/H5A.c
+++ b/src/H5A.c
@@ -683,7 +683,6 @@ H5A_write(H5A_t *attr, const H5T_t *mem_type, void *buf)
if (H5O_modify(&(attr->ent), H5O_ATTR, idx, 0, attr) < 0)
HGOTO_ERROR(H5E_ATTR, H5E_CANTINIT, FAIL,
"unable to update attribute header messages");
- attr->data=NULL; /* un-do the data pointer */
/* Indicate the the attribute doesn't need fill-values */
attr->initialized=TRUE;
@@ -696,8 +695,6 @@ done:
H5I_dec_ref(src_id);
if (dst_id >= 0)
H5I_dec_ref(dst_id);
- if (tconv_buf)
- H5MM_xfree(tconv_buf);
if (bkg_buf)
H5MM_xfree(bkg_buf);