Commit 36a581a0 authored by Pavan Balaji's avatar Pavan Balaji
Browse files

Free communicators when not using them.

When we skip non-comm-world communicators, we need to make sure to
skip them.

No reviewer.
parent daf29e33
......@@ -31,8 +31,10 @@ int main(int argc, char *argv[])
continue;
#if defined BCAST_COMM_WORLD_ONLY
if (comm != MPI_COMM_WORLD)
if (comm != MPI_COMM_WORLD) {
MTestFreeComm(&comm);
continue;
}
#endif /* BCAST_COMM_WORLD_ONLY */
/* Determine the sender and receiver */
......
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