Remove mpool_tree_item from the mpool_tree before unregistering/freeing memory.
Otherwise a race exists if another thread allocates already freed memory which is not removed from the mpool_tree yet. This commit was SVN r16038.
Этот коммит содержится в:
родитель
447dc0e6cd
Коммит
b0614931f4
@ -290,8 +290,9 @@ int mca_mpool_base_free(void *base)
|
||||
return OMPI_SUCCESS;
|
||||
}
|
||||
|
||||
unregister_tree_item(mpool_tree_item);
|
||||
rc = mca_mpool_base_tree_delete(mpool_tree_item);
|
||||
if(OMPI_SUCCESS == rc)
|
||||
unregister_tree_item(mpool_tree_item);
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user