This commit fixes trac:1635.
This commit was SVN r19911. The following Trac tickets were found above: Ticket 1635 --> https://svn.open-mpi.org/trac/ompi/ticket/1635
Этот коммит содержится в:
родитель
721626af70
Коммит
19cbe4567e
@ -277,6 +277,7 @@ int mca_btl_sctp_component_open(void)
|
|||||||
int mca_btl_sctp_component_close(void)
|
int mca_btl_sctp_component_close(void)
|
||||||
{
|
{
|
||||||
opal_list_item_t* item;
|
opal_list_item_t* item;
|
||||||
|
opal_list_item_t* next;
|
||||||
|
|
||||||
if(NULL != mca_btl_sctp_component.sctp_if_include) {
|
if(NULL != mca_btl_sctp_component.sctp_if_include) {
|
||||||
free(mca_btl_sctp_component.sctp_if_include);
|
free(mca_btl_sctp_component.sctp_if_include);
|
||||||
@ -298,12 +299,13 @@ int mca_btl_sctp_component_close(void)
|
|||||||
|
|
||||||
/* cleanup any pending events */
|
/* cleanup any pending events */
|
||||||
OPAL_THREAD_LOCK(&mca_btl_sctp_component.sctp_lock);
|
OPAL_THREAD_LOCK(&mca_btl_sctp_component.sctp_lock);
|
||||||
for(item = opal_list_remove_first(&mca_btl_sctp_component.sctp_events);
|
for(item = opal_list_get_first(&mca_btl_sctp_component.sctp_events);
|
||||||
item != NULL;
|
item != opal_list_get_end(&mca_btl_sctp_component.sctp_events);
|
||||||
item = opal_list_remove_first(&mca_btl_sctp_component.sctp_events)) {
|
item = next) {
|
||||||
mca_btl_sctp_event_t* event = (mca_btl_sctp_event_t*)item;
|
mca_btl_sctp_event_t* event = (mca_btl_sctp_event_t*)item;
|
||||||
opal_event_del(&event->event);
|
next = opal_list_get_next(item);
|
||||||
OBJ_RELEASE(event);
|
opal_event_del(&event->event);
|
||||||
|
OBJ_RELEASE(event);
|
||||||
}
|
}
|
||||||
OPAL_THREAD_UNLOCK(&mca_btl_sctp_component.sctp_lock);
|
OPAL_THREAD_UNLOCK(&mca_btl_sctp_component.sctp_lock);
|
||||||
|
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user