Skip to content
Snippets Groups Projects
Commit 9d46a809 authored by Thomas Jahns's avatar Thomas Jahns :cartwheel:
Browse files

Fix missing de-allocation.

parent 624144ca
No related branches found
No related tags found
No related merge requests found
......@@ -291,8 +291,9 @@ xt_create_compound_datatype(size_t count,
xt_mpi_call(MPI_Type_commit(&datatype), comm);
if (num_datatypes != count && num_datatypes > max_auto_dt) {
free(datatypes_);
free(block_lengths_);
free(displacements_);
free(datatypes_);
}
return datatype;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment