Skip to content

Commit d3a7360

Browse files
authored
Merge pull request #6800 from jsquyres/pr/v4.0.x/tcp-oob-active-listeners-fix
v4.0.x: Fix oob_tcp tcp_component_close segfault with active listeners
2 parents 2df46ac + 667fe3f commit d3a7360

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
@@ -188,9 +188,6 @@ static int tcp_component_open(void)
188188
*/
189189
static int tcp_component_close(void)
190190
{
191-
/* cleanup listen event list */
192-
OPAL_LIST_DESTRUCT(&mca_oob_tcp_component.listeners);
193-
194191
OBJ_DESTRUCT(&mca_oob_tcp_component.peers);
195192

196193
if (NULL != mca_oob_tcp_component.ipv4conns) {
@@ -748,6 +745,9 @@ static void component_shutdown(void)
748745
(void **) &peer, node, &node);
749746
}
750747

748+
/* cleanup listen event list */
749+
OPAL_LIST_DESTRUCT(&mca_oob_tcp_component.listeners);
750+
751751
opal_output_verbose(2, orte_oob_base_framework.framework_output,
752752
"%s TCP SHUTDOWN done",
753753
ORTE_NAME_PRINT(ORTE_PROC_MY_NAME));

0 commit comments

Comments
 (0)