From 786e686d4347655b574e609c65626c8323bb49b2 Mon Sep 17 00:00:00 2001 From: Aravind Gopalakrishnan Date: Fri, 1 Feb 2019 14:03:23 -0800 Subject: [PATCH] btl/ofi: Fix valgrind complaints on uninitialized pointer use It doesn't seem like the BTL was using uninitialized pointer. But simply setting the rcache pointer to NULL after destroying it makes the valgrind errors go away. Fixes Issue #6345 Signed-off-by: Aravind Gopalakrishnan --- opal/mca/btl/ofi/btl_ofi_module.c | 1 + 1 file changed, 1 insertion(+) diff --git a/opal/mca/btl/ofi/btl_ofi_module.c b/opal/mca/btl/ofi/btl_ofi_module.c index 95a77d1f59..655aa29925 100644 --- a/opal/mca/btl/ofi/btl_ofi_module.c +++ b/opal/mca/btl/ofi/btl_ofi_module.c @@ -315,6 +315,7 @@ int mca_btl_ofi_finalize (mca_btl_base_module_t* btl) if (ofi_btl->rcache) { mca_rcache_base_module_destroy (ofi_btl->rcache); + ofi_btl->rcache = NULL; } free (btl);