diff options
author | Neil Fortner <nfortne2@hdfgroup.org> | 2015-08-28 19:43:03 (GMT) |
---|---|---|
committer | Neil Fortner <nfortne2@hdfgroup.org> | 2015-08-28 19:43:03 (GMT) |
commit | 1847391fc51728811407f3e1586213758c1d0e89 (patch) | |
tree | f905735e225f2173a0694f1aa3bf4f99aa535a7f /src/H5S.c | |
parent | 1252bc4e669306b0e029e26b7283d1685fa2ccbc (diff) | |
download | hdf5-1847391fc51728811407f3e1586213758c1d0e89.zip hdf5-1847391fc51728811407f3e1586213758c1d0e89.tar.gz hdf5-1847391fc51728811407f3e1586213758c1d0e89.tar.bz2 |
[svn-r27605] Fix potential memory error when using a dataspace that was created with
H5Screate and had its extent set by H5Sextent_copy.
Tested: jam, ostrich (h5committest)
Diffstat (limited to 'src/H5S.c')
-rw-r--r-- | src/H5S.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -190,7 +190,7 @@ H5S_create(H5S_class_t type) FUNC_ENTER_NOAPI(NULL) /* Create a new dataspace */ - if(NULL == (new_ds = H5FL_MALLOC(H5S_t))) + if(NULL == (new_ds = H5FL_CALLOC(H5S_t))) HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, NULL, "memory allocation failed") /* Initialize default dataspace state */ |