|
15 | 15 | * All rights reserved. |
16 | 16 | * Copyright (c) 2011-2013 Cisco Systems, Inc. All rights reserved. |
17 | 17 | * Copyright (c) 2013-2016 Intel, Inc. All rights reserved. |
18 | | - * Copyright (c) 2014-2016 Research Organization for Information Science |
| 18 | + * Copyright (c) 2014 Research Organization for Information Science |
19 | 19 | * and Technology (RIST). All rights reserved. |
20 | 20 | * $COPYRIGHT$ |
21 | 21 | * |
@@ -642,6 +642,7 @@ void orte_odls_base_default_launch_local(int fd, short sd, void *cbdata) |
642 | 642 | int rc=ORTE_SUCCESS; |
643 | 643 | orte_std_cntr_t proc_rank; |
644 | 644 | char basedir[MAXPATHLEN]; |
| 645 | + char **argvsav=NULL; |
645 | 646 | int inm, j, idx; |
646 | 647 | int total_num_local_procs = 0; |
647 | 648 | orte_odls_launch_local_t *caddy = (orte_odls_launch_local_t*)cbdata; |
@@ -815,7 +816,6 @@ void orte_odls_base_default_launch_local(int fd, short sd, void *cbdata) |
815 | 816 |
|
816 | 817 | /* okay, now let's launch all the local procs for this app using the provided fork_local fn */ |
817 | 818 | for (proc_rank = 0, idx=0; idx < orte_local_children->size; idx++) { |
818 | | - char **argvsav=NULL; |
819 | 819 | if (NULL == (child = (orte_proc_t*)opal_pointer_array_get_item(orte_local_children, idx))) { |
820 | 820 | continue; |
821 | 821 | } |
@@ -913,6 +913,9 @@ void orte_odls_base_default_launch_local(int fd, short sd, void *cbdata) |
913 | 913 | } |
914 | 914 | /* don't have enough - wait a little time */ |
915 | 915 | ORTE_DETECT_TIMEOUT(1000, 1000, -1, timer_cb, caddy); |
| 916 | + if (NULL != argvsav) { |
| 917 | + opal_argv_free(argvsav); |
| 918 | + } |
916 | 919 | return; |
917 | 920 | } |
918 | 921 | } |
@@ -1100,6 +1103,9 @@ void orte_odls_base_default_launch_local(int fd, short sd, void *cbdata) |
1100 | 1103 | */ |
1101 | 1104 | chdir(basedir); |
1102 | 1105 | } |
| 1106 | + if (NULL != argvsav) { |
| 1107 | + opal_argv_free(argvsav); |
| 1108 | + } |
1103 | 1109 |
|
1104 | 1110 | GETOUT: |
1105 | 1111 | /* tell the state machine that all local procs for this job |
|
0 commit comments