mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-01-30 15:32:37 +08:00
Add HDfree of vector, matrix_out and matrix_out1 previously HDmalloced
in coll_write_test().
This commit is contained in:
parent
1918972960
commit
6a53c14240
@ -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 ;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user