Skip to content

Commit 23d53f9

Browse files
authored
Merge pull request #7011 from jsquyres/pr/v3.1.x/oob-tcp-fix
v3.1.x: Fix oob_tcp tcp_component_close segfault with active listeners
2 parents cfffc9c + 1ca2aeb commit 23d53f9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

orte/mca/oob/tcp/oob_tcp_component.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,6 @@ static int tcp_component_open(void)
180180
*/
181181
static int tcp_component_close(void)
182182
{
183-
/* cleanup listen event list */
184-
OPAL_LIST_DESTRUCT(&mca_oob_tcp_component.listeners);
185-
186183
OBJ_DESTRUCT(&mca_oob_tcp_component.peers);
187184

188185
if (NULL != mca_oob_tcp_component.ipv4conns) {
@@ -714,6 +711,9 @@ static void component_shutdown(void)
714711
(void **) &peer, node, &node);
715712
}
716713

714+
/* cleanup listen event list */
715+
OPAL_LIST_DESTRUCT(&mca_oob_tcp_component.listeners);
716+
717717
opal_output_verbose(2, orte_oob_base_framework.framework_output,
718718
"%s TCP SHUTDOWN done",
719719
ORTE_NAME_PRINT(ORTE_PROC_MY_NAME));

0 commit comments

Comments
 (0)