From fec7a162678b963cbd89e22f1a6b2188bc7ae9a4 Mon Sep 17 00:00:00 2001 From: Carl Pearson Date: Wed, 2 Jun 2021 16:18:52 -0400 Subject: [PATCH] free requests --- persistent.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/persistent.cpp b/persistent.cpp index c1b395a..d3b5e56 100644 --- a/persistent.cpp +++ b/persistent.cpp @@ -149,7 +149,12 @@ int main(int argc, char **argv) { if (munlock(buf, bytes)) { perror("error unlocking memory"); } + + MPI_Request_free(&sreq); + MPI_Request_free(&rreq); delete[] buf; + + } MPI_Finalize();