diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2007-01-03 04:42:13 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2007-01-03 04:42:13 (GMT) |
commit | 9aa47d6ad51e5b1651eccb480603094a2e24d115 (patch) | |
tree | bb44fa6c48739aa7e5f69c4e8311737fe1301fda /src/H5A.c | |
parent | c1d6230290469b4b4408fec5857a835893fe7d67 (diff) | |
download | hdf5-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 */ |