1
1

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.
Этот коммит содержится в:
Gleb Natapov 2007-09-03 10:56:55 +00:00
родитель 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;
}