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>
Этот коммит содержится в:
родитель
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);
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user