Fix memory leaks in H5Dwrite w/ selection I/O (#2859)

This commit is contained in:
Dana Robinson 2023-04-30 12:46:33 -07:00 committed by GitHub
parent 9fb85dbf4d
commit 5414b8c318
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);