Skip to content

Commit e2c343c

Browse files
committed
odls: plus memory leak
as reported by Coverity with CID 710645
1 parent 213a981 commit e2c343c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

orte/mca/odls/base/odls_base_default_fns.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* All rights reserved.
1616
* Copyright (c) 2011-2013 Cisco Systems, Inc. All rights reserved.
1717
* Copyright (c) 2013-2016 Intel, Inc. All rights reserved.
18-
* Copyright (c) 2014 Research Organization for Information Science
18+
* Copyright (c) 2014-2016 Research Organization for Information Science
1919
* and Technology (RIST). All rights reserved.
2020
* $COPYRIGHT$
2121
*
@@ -642,7 +642,6 @@ void orte_odls_base_default_launch_local(int fd, short sd, void *cbdata)
642642
int rc=ORTE_SUCCESS;
643643
orte_std_cntr_t proc_rank;
644644
char basedir[MAXPATHLEN];
645-
char **argvsav=NULL;
646645
int inm, j, idx;
647646
int total_num_local_procs = 0;
648647
orte_odls_launch_local_t *caddy = (orte_odls_launch_local_t*)cbdata;
@@ -816,6 +815,7 @@ void orte_odls_base_default_launch_local(int fd, short sd, void *cbdata)
816815

817816
/* okay, now let's launch all the local procs for this app using the provided fork_local fn */
818817
for (proc_rank = 0, idx=0; idx < orte_local_children->size; idx++) {
818+
char **argvsav=NULL;
819819
if (NULL == (child = (orte_proc_t*)opal_pointer_array_get_item(orte_local_children, idx))) {
820820
continue;
821821
}

0 commit comments

Comments
 (0)