Skip to content

Commit 0bce306

Browse files
Merge pull request #5863 from ggouaillardet/topic/misc_fixes
fix double free & missing header
2 parents e9e4d2a + 5803385 commit 0bce306

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

orte/mca/plm/tm/plm_tm_module.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
* Copyright (c) 2007-2012 Los Alamos National Security, LLC. All rights
1414
* reserved.
1515
* Copyright (c) 2014-2018 Intel, Inc. All rights reserved.
16+
* Copyright (c) 2018 Research Organization for Information Science
17+
* and Technology (RIST). All rights reserved.
1618
* $COPYRIGHT$
1719
*
1820
* Additional copyrights may follow
@@ -61,6 +63,7 @@
6163
#include "orte/util/show_help.h"
6264
#include "opal/util/opal_environ.h"
6365
#include "opal/util/basename.h"
66+
#include "opal/util/printf.h"
6467

6568
#include "orte/util/name_fns.h"
6669
#include "orte/util/threads.h"

orte/util/hostfile/hostfile.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* reserved.
1414
* Copyright (c) 2011 Cisco Systems, Inc. All rights reserved.
1515
* Copyright (c) 2013-2017 Intel, Inc. All rights reserved.
16-
* Copyright (c) 2015-2017 Research Organization for Information Science
16+
* Copyright (c) 2015-2018 Research Organization for Information Science
1717
* and Technology (RIST). All rights reserved.
1818
* Copyright (c) 2016 IBM Corporation. All rights reserved.
1919
* $COPYRIGHT$
@@ -159,7 +159,7 @@ static int hostfile_parse_line(int token, opal_list_t* updates,
159159
if (1 == cnt) {
160160
node_name = strdup(argv[0]);
161161
} else if (2 == cnt) {
162-
username = argv[0];
162+
username = strdup(argv[0]);
163163
node_name = strdup(argv[1]);
164164
} else {
165165
opal_output(0, "WARNING: Unhandled user@host-combination\n"); /* XXX */
@@ -274,7 +274,7 @@ static int hostfile_parse_line(int token, opal_list_t* updates,
274274
if (1 == cnt) {
275275
node_name = strdup(argv[0]);
276276
} else if (2 == cnt) {
277-
username = argv[0];
277+
username = strdup(argv[0]);
278278
node_name = strdup(argv[1]);
279279
} else {
280280
opal_output(0, "WARNING: Unhandled user@host-combination\n"); /* XXX */

0 commit comments

Comments
 (0)