memory free vergessen

This commit is contained in:
Johannes Winklehner 2016-05-11 22:03:45 +02:00
parent 265bb2ac36
commit 7be8b179ba

View file

@ -1,10 +1,10 @@
/*
============================================================================
Name : hpc_mpi.c
Author :
Author :
Version :
Copyright : Your copyright notice
Description : Hello MPI World in C
Description : Hello MPI World in C
============================================================================
*/
#include <stdio.h>
@ -72,7 +72,10 @@ int Binom_Reduce(const void *sendbuf, void *recvbuf, int count,
if (r != root) {
MPI_Send(reduced, count, datatype, r - i, i, comm);
MPI_Free_mem(reduced);
}
MPI_Free_mem(recv);
return 0;
}