From e7bfbe1d1a66f62fe9064da41233fbe588b6f36b Mon Sep 17 00:00:00 2001 From: Nathan Hjelm Date: Tue, 26 Oct 2010 22:09:37 +0000 Subject: [PATCH] added missing object initialization/destruction of mca_oob_tcp_component.tcp_listen_thread_event This commit was SVN r23958. --- orte/mca/oob/tcp/oob_tcp.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/orte/mca/oob/tcp/oob_tcp.c b/orte/mca/oob/tcp/oob_tcp.c index e2befa3cca..ec5fd0435c 100644 --- a/orte/mca/oob/tcp/oob_tcp.c +++ b/orte/mca/oob/tcp/oob_tcp.c @@ -9,7 +9,7 @@ * University of Stuttgart. All rights reserved. * Copyright (c) 2004-2005 The Regents of the University of California. * All rights reserved. - * Copyright (c) 2006-2007 Los Alamos National Security, LLC. + * Copyright (c) 2006-2010 Los Alamos National Security, LLC. * All rights reserved. * Copyright (c) 2009 Cisco Systems, Inc. All rights reserved. * $COPYRIGHT$ @@ -1394,6 +1394,8 @@ mca_oob_t* mca_oob_tcp_component_init(int* priority) /* intialize event library */ OBJ_CONSTRUCT(&mca_oob_tcp_component.tcp_recv_event, opal_event_t); + OBJ_CONSTRUCT(&mca_oob_tcp_component.tcp_listen_thread_event, opal_event_t); + #if OPAL_WANT_IPV6 OBJ_CONSTRUCT(&mca_oob_tcp_component.tcp6_recv_event, opal_event_t); #endif /* OPAL_WANT_IPV6 */ @@ -1679,6 +1681,7 @@ int mca_oob_tcp_fini(void) mca_oob_tcp_component.tcp_shutdown = true; opal_thread_join(&mca_oob_tcp_component.tcp_listen_thread, &data); opal_event.del(&mca_oob_tcp_component.tcp_listen_thread_event); + OBJ_DESTRUCT(&mca_oob_tcp_component.tcp_listen_thread_event); } else { if (mca_oob_tcp_component.tcp_listen_sd >= 0) { opal_event.del(&mca_oob_tcp_component.tcp_recv_event);