Skip to content

Commit b738fa2

Browse files
authored
Merge pull request #6796 from orivej/fix-tcp_component_close-segfault
Fix oob_tcp tcp_component_close segfault with active listeners
2 parents 1eb6dda + 78b7e34 commit b738fa2

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
@@ -186,9 +186,6 @@ static int tcp_component_open(void)
186186
*/
187187
static int tcp_component_close(void)
188188
{
189-
/* cleanup listen event list */
190-
OPAL_LIST_DESTRUCT(&mca_oob_tcp_component.listeners);
191-
192189
OBJ_DESTRUCT(&mca_oob_tcp_component.peers);
193190

194191
if (NULL != mca_oob_tcp_component.ipv4conns) {
@@ -710,6 +707,9 @@ static void component_shutdown(void)
710707
(void **) &peer, node, &node);
711708
}
712709

710+
/* cleanup listen event list */
711+
OPAL_LIST_DESTRUCT(&mca_oob_tcp_component.listeners);
712+
713713
opal_output_verbose(2, orte_oob_base_framework.framework_output,
714714
"%s TCP SHUTDOWN done",
715715
ORTE_NAME_PRINT(ORTE_PROC_MY_NAME));

0 commit comments

Comments
 (0)