Skip to content

Commit c7ddec9

Browse files
authored
Merge pull request #7012 from jsquyres/pr/v3.0.x/oob-tcp-fix
v3.0.x: Fix oob_tcp tcp_component_close segfault with active listeners
2 parents d03ccec + 2a6bcd3 commit c7ddec9

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) {
@@ -706,6 +703,9 @@ static void component_shutdown(void)
706703
(void **) &peer, node, &node);
707704
}
708705

706+
/* cleanup listen event list */
707+
OPAL_LIST_DESTRUCT(&mca_oob_tcp_component.listeners);
708+
709709
opal_output_verbose(2, orte_oob_base_framework.framework_output,
710710
"%s TCP SHUTDOWN done",
711711
ORTE_NAME_PRINT(ORTE_PROC_MY_NAME));

0 commit comments

Comments
 (0)