File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 1717 * Copyright (c) 2015-2016 Los Alamos National Security, LLC. All rights
1818 * reserved.
1919 * Copyright (c) 2015-2018 Cisco Systems, Inc. All rights reserved
20- * Copyright (c) 2018 Amazon.com, Inc. or its affiliates. All Rights reserved.
20+ * Copyright (c) 2018-2019 Amazon.com, Inc. or its affiliates. All Rights reserved.
2121 * $COPYRIGHT$
2222 *
2323 * Additional copyrights may follow
@@ -198,8 +198,6 @@ mca_btl_tcp_proc_t* mca_btl_tcp_proc_create(opal_proc_t* proc)
198198 }
199199 }
200200
201- free (remote_addrs );
202-
203201 /* allocate space for endpoint array - one for each exported address */
204202 btl_proc -> proc_endpoints = (mca_btl_base_endpoint_t * * )
205203 malloc ((1 + btl_proc -> proc_addr_count ) *
@@ -223,6 +221,10 @@ mca_btl_tcp_proc_t* mca_btl_tcp_proc_create(opal_proc_t* proc)
223221 }
224222 }
225223
224+ if (NULL != remote_addrs ) {
225+ free (remote_addrs );
226+ }
227+
226228 OPAL_THREAD_UNLOCK (& mca_btl_tcp_component .tcp_lock );
227229
228230 return btl_proc ;
You can’t perform that action at this time.
0 commit comments