mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-04-12 17:31:09 +08:00
Merge pull request #720 in HDFFV/hdf5 from ~BYRN/hdf5_adb:develop to develop
* commit '1743470502095271be64a20d80dc53f085e75a09': HDFFV-10297 Free buffer inside loop
This commit is contained in:
commit
e7303eb36a
@ -927,6 +927,11 @@ int do_copy_objects(hid_t fidin, hid_t fidout, trav_table_t *travt,
|
||||
if (TRUE == H5Tdetect_class(wtype_id, H5T_VLEN))
|
||||
if (H5Dvlen_reclaim(wtype_id, f_space_id, H5P_DEFAULT, buf) < 0)
|
||||
HGOTO_ERROR(FAIL, H5E_tools_min_id_g, "H5Dvlen_reclaim failed");
|
||||
/* free */
|
||||
if (buf != NULL) {
|
||||
HDfree(buf);
|
||||
buf = NULL;
|
||||
}
|
||||
}
|
||||
else { /* possibly not enough memory, read/write by hyperslabs */
|
||||
size_t p_type_nbytes = msize; /*size of memory type */
|
||||
|
Loading…
x
Reference in New Issue
Block a user