summaryrefslogtreecommitdiffstats
path: root/src/H5A.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2007-01-03 04:42:13 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2007-01-03 04:42:13 (GMT)
commit9aa47d6ad51e5b1651eccb480603094a2e24d115 (patch)
treebb44fa6c48739aa7e5f69c4e8311737fe1301fda /src/H5A.c
parentc1d6230290469b4b4408fec5857a835893fe7d67 (diff)
downloadhdf5-9aa47d6ad51e5b1651eccb480603094a2e24d115.zip
hdf5-9aa47d6ad51e5b1651eccb480603094a2e24d115.tar.gz
hdf5-9aa47d6ad51e5b1651eccb480603094a2e24d115.tar.bz2
[svn-r13100] Description:
Fix bug which could possibly corrupt file data if an attribute was renamed to a longer name. Tested on: FreeBSD/32 6.1 (duty)
Diffstat (limited to 'src/H5A.c')
-rw-r--r--src/H5A.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5A.c b/src/H5A.c
index 072fc99..6021c21 100644
--- a/src/H5A.c
+++ b/src/H5A.c
@@ -1508,7 +1508,7 @@ H5A_copy(H5A_t *_new_attr, const H5A_t *old_attr)
/* Allocate attribute structure */
if(_new_attr == NULL) {
- if(NULL == (new_attr = H5FL_CALLOC(H5A_t)))
+ if(NULL == (new_attr = H5FL_MALLOC(H5A_t)))
HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, NULL, "memory allocation failed")
allocated_attr = TRUE;
} /* end if */