From ab4875ddc2b76ceced120fbfe09d8dcbde6e6ff3 Mon Sep 17 00:00:00 2001 From: Harumi Kuno Date: Tue, 10 Mar 2020 17:39:59 -0600 Subject: [PATCH] set ep to NULL to avoid double close Per suggestion of @awlauria Signed-off-by: Harumi Kuno --- opal/mca/btl/ofi/btl_ofi_component.c | 1 + 1 file changed, 1 insertion(+) diff --git a/opal/mca/btl/ofi/btl_ofi_component.c b/opal/mca/btl/ofi/btl_ofi_component.c index 4f89132729..c7475539c9 100644 --- a/opal/mca/btl/ofi/btl_ofi_component.c +++ b/opal/mca/btl/ofi/btl_ofi_component.c @@ -584,6 +584,7 @@ fail: /* close basic ep before closing av */ if (NULL != ep && !module->is_scalable_ep) { fi_close(&ep->fid); + ep = NULL; } /* if the contexts have not been initiated, num_contexts should