Skip to content

Commit 786e686

Browse files
committed
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 <Aravind.Gopalakrishnan@intel.com>
1 parent 89fa061 commit 786e686

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

opal/mca/btl/ofi/btl_ofi_module.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,7 @@ int mca_btl_ofi_finalize (mca_btl_base_module_t* btl)
315315

316316
if (ofi_btl->rcache) {
317317
mca_rcache_base_module_destroy (ofi_btl->rcache);
318+
ofi_btl->rcache = NULL;
318319
}
319320

320321
free (btl);

0 commit comments

Comments
 (0)