summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2023-04-30 19:46:33 (GMT)
committerGitHub <noreply@github.com>2023-04-30 19:46:33 (GMT)
commit5414b8c318a18e0dea85d17e7ea823c723365728 (patch)
tree244a564affce7f756b8910f563e1729848d37beb /src
parent9fb85dbf4d2c530cb63f4c644eecbe424832a917 (diff)
downloadhdf5-5414b8c318a18e0dea85d17e7ea823c723365728.zip
hdf5-5414b8c318a18e0dea85d17e7ea823c723365728.tar.gz
hdf5-5414b8c318a18e0dea85d17e7ea823c723365728.tar.bz2
Fix memory leaks in H5Dwrite w/ selection I/O (#2859)
Diffstat (limited to 'src')
-rw-r--r--src/H5Dio.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/H5Dio.c b/src/H5Dio.c
index f6f743c..1cd5835 100644
--- a/src/H5Dio.c
+++ b/src/H5Dio.c
@@ -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);