summaryrefslogtreecommitdiffstats
path: root/testpar/t_span_tree.c
diff options
context:
space:
mode:
authorBinh-Minh Ribler <bmribler@hdfgroup.org>2018-03-13 01:06:20 (GMT)
committerBinh-Minh Ribler <bmribler@hdfgroup.org>2018-03-13 01:06:20 (GMT)
commitc76411768fe93ae6e8b720137bcfdbcc31639d6d (patch)
tree19e960f9cfb1ef04b11da2b4c65be12b0964722d /testpar/t_span_tree.c
parent2d4d39d15763042661347e5a16de6cf154537dda (diff)
parenta8afb3ab3b32b07611fb5932303dd0594a1c9658 (diff)
downloadhdf5-c76411768fe93ae6e8b720137bcfdbcc31639d6d.zip
hdf5-c76411768fe93ae6e8b720137bcfdbcc31639d6d.tar.gz
hdf5-c76411768fe93ae6e8b720137bcfdbcc31639d6d.tar.bz2
Merge branch 'develop' of https://bitbucket.hdfgroup.org/scm/~bmribler/hdf5_bmr_cpp3 into develop
Diffstat (limited to 'testpar/t_span_tree.c')
-rw-r--r--testpar/t_span_tree.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/testpar/t_span_tree.c b/testpar/t_span_tree.c
index 20bc4ac..3c836ad 100644
--- a/testpar/t_span_tree.c
+++ b/testpar/t_span_tree.c
@@ -255,7 +255,7 @@ void coll_write_test(int chunk_factor)
#endif
- int *matrix_out, *matrix_out1, *vector;
+ int *matrix_out = NULL, *matrix_out1 = NULL, *vector = NULL;
int mpi_size,mpi_rank;
@@ -662,6 +662,13 @@ void coll_write_test(int chunk_factor)
ret = H5Fclose(file);
VRFY((ret >= 0),"");
+ if (vector)
+ HDfree(vector);
+ if (matrix_out)
+ HDfree(matrix_out);
+ if (matrix_out1)
+ HDfree(matrix_out1);
+
return ;
}