summaryrefslogtreecommitdiffstats
path: root/testpar/t_span_tree.c
diff options
context:
space:
mode:
authorlrknox <lrknox>2018-03-12 18:47:27 (GMT)
committerlrknox <lrknox>2018-03-12 18:47:27 (GMT)
commit6a53c14240872fcc82504fffaa010d754a8c73e0 (patch)
tree8a5662d2f163c8c958bca4aedba191d5f635d05c /testpar/t_span_tree.c
parent1918972960d003a624bae6896613cb3493bc8e55 (diff)
downloadhdf5-6a53c14240872fcc82504fffaa010d754a8c73e0.zip
hdf5-6a53c14240872fcc82504fffaa010d754a8c73e0.tar.gz
hdf5-6a53c14240872fcc82504fffaa010d754a8c73e0.tar.bz2
Add HDfree of vector, matrix_out and matrix_out1 previously HDmalloced
in coll_write_test().
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..f4de133 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 != NULL)
+ HDfree(vector);
+ if (matrix_out != NULL)
+ HDfree(matrix_out);
+ if (matrix_out1 != NULL)
+ HDfree(matrix_out1);
+
return ;
}