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 17
17
* Copyright (c) 2015-2016 Los Alamos National Security, LLC. All rights
18
18
* reserved.
19
19
* 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.
21
21
* $COPYRIGHT$
22
22
*
23
23
* Additional copyrights may follow
@@ -198,8 +198,6 @@ mca_btl_tcp_proc_t* mca_btl_tcp_proc_create(opal_proc_t* proc)
198
198
}
199
199
}
200
200
201
- free (remote_addrs );
202
-
203
201
/* allocate space for endpoint array - one for each exported address */
204
202
btl_proc -> proc_endpoints = (mca_btl_base_endpoint_t * * )
205
203
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)
223
221
}
224
222
}
225
223
224
+ if (NULL != remote_addrs ) {
225
+ free (remote_addrs );
226
+ }
227
+
226
228
OPAL_THREAD_UNLOCK (& mca_btl_tcp_component .tcp_lock );
227
229
228
230
return btl_proc ;
You can’t perform that action at this time.
0 commit comments