Skip to content

Commit

Permalink
Fix leak for MPI_Datatype (#3031)
Browse files Browse the repository at this point in the history
  • Loading branch information
garth-wells authored Feb 3, 2024
1 parent 5bbb342 commit ccce52f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cpp/dolfinx/io/xdmf_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -615,6 +615,8 @@ xdmf_utils::distribute_entity_data(
return std::pair(std::move(entities), std::move(data));
};

MPI_Type_free(&compound_type);

return select_entities(topology, xdofmap, nodes_g, cell_vertex_dofs,
entities_data);
}
Expand Down

0 comments on commit ccce52f

Please sign in to comment.