1
1

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>
Этот коммит содержится в:
Aravind Gopalakrishnan 2019-02-01 14:03:23 -08:00
родитель 89fa06135e
Коммит 786e686d43

Просмотреть файл

@ -315,6 +315,7 @@ int mca_btl_ofi_finalize (mca_btl_base_module_t* btl)
if (ofi_btl->rcache) { if (ofi_btl->rcache) {
mca_rcache_base_module_destroy (ofi_btl->rcache); mca_rcache_base_module_destroy (ofi_btl->rcache);
ofi_btl->rcache = NULL;
} }
free (btl); free (btl);