Commit 9d46a809 authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Fix missing de-allocation.

parent 624144ca
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment