mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-02-05 15:42:32 +08:00
Fix memory leaks in H5Dwrite w/ selection I/O (#2859)
This commit is contained in:
parent
9fb85dbf4d
commit
5414b8c318
@ -876,6 +876,13 @@ done:
|
||||
/* Free global piece array */
|
||||
H5MM_xfree(io_info.sel_pieces);
|
||||
|
||||
/* Free selection I/O arrays */
|
||||
H5MM_xfree(io_info.mem_spaces);
|
||||
H5MM_xfree(io_info.file_spaces);
|
||||
H5MM_xfree(io_info.addrs);
|
||||
H5MM_xfree(io_info.element_sizes);
|
||||
H5MM_xfree(io_info.wbufs);
|
||||
|
||||
/* Free store array if it was allocated */
|
||||
if (store != &store_local)
|
||||
H5MM_free(store);
|
||||
|
Loading…
Reference in New Issue
Block a user