Bug #1540: Fix memory leaks in PAMI, Verbs, MPI RDMA implementations61/2461/3
commit31c53faa96cc20081a782e9a7ef74fb7abd0b352
authorNitin Bhat <nbhat4@illinois.edu>
Fri, 28 Apr 2017 18:33:00 +0000 (28 13:33 -0500)
committerRonak Buch <rabuch2@illinois.edu>
Mon, 8 May 2017 20:35:20 +0000 (8 15:35 -0500)
treecd7db637f5b83816f03272bfb6d1e2cd2b1691c7
parent71ee40f605848b6fbf408e51a3db0094763d4ffd
Bug #1540: Fix memory leaks in PAMI, Verbs, MPI RDMA implementations

The first leak was the allocation of the machine specific information
associated with the receiver in CkIssueRgets on obtaining the metadata msg.
This leak was fixed by freeing this allocation in the machine layer
on completing the rdma operations.
The second leak was the allocation of the acknowledgement struct
CmiRdmaAck associated with the sender in CmiSetRdmaAck. This leak was fixed
by freeing this allocation in the machine layer after calling the corresponding
charm layer ack handler method on receiving the ack message.

Change-Id: Ida7e4fee9b5443db9fa6ce3bcd9dd935098ddae1
src/arch/mpi/machine.c
src/arch/pamilrts/machine-onesided.c
src/arch/verbs/machine-onesided.c