Merge pull request #5863 from ggouaillardet/topic/misc_fixes
fix double free & missing header
Этот коммит содержится в:
Коммит
0bce306194
@ -13,6 +13,8 @@
|
||||
* Copyright (c) 2007-2012 Los Alamos National Security, LLC. All rights
|
||||
* reserved.
|
||||
* Copyright (c) 2014-2018 Intel, Inc. All rights reserved.
|
||||
* Copyright (c) 2018 Research Organization for Information Science
|
||||
* and Technology (RIST). All rights reserved.
|
||||
* $COPYRIGHT$
|
||||
*
|
||||
* Additional copyrights may follow
|
||||
@ -61,6 +63,7 @@
|
||||
#include "orte/util/show_help.h"
|
||||
#include "opal/util/opal_environ.h"
|
||||
#include "opal/util/basename.h"
|
||||
#include "opal/util/printf.h"
|
||||
|
||||
#include "orte/util/name_fns.h"
|
||||
#include "orte/util/threads.h"
|
||||
|
@ -13,7 +13,7 @@
|
||||
* reserved.
|
||||
* Copyright (c) 2011 Cisco Systems, Inc. All rights reserved.
|
||||
* Copyright (c) 2013-2017 Intel, Inc. All rights reserved.
|
||||
* Copyright (c) 2015-2017 Research Organization for Information Science
|
||||
* Copyright (c) 2015-2018 Research Organization for Information Science
|
||||
* and Technology (RIST). All rights reserved.
|
||||
* Copyright (c) 2016 IBM Corporation. All rights reserved.
|
||||
* $COPYRIGHT$
|
||||
@ -159,7 +159,7 @@ static int hostfile_parse_line(int token, opal_list_t* updates,
|
||||
if (1 == cnt) {
|
||||
node_name = strdup(argv[0]);
|
||||
} else if (2 == cnt) {
|
||||
username = argv[0];
|
||||
username = strdup(argv[0]);
|
||||
node_name = strdup(argv[1]);
|
||||
} else {
|
||||
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,
|
||||
if (1 == cnt) {
|
||||
node_name = strdup(argv[0]);
|
||||
} else if (2 == cnt) {
|
||||
username = argv[0];
|
||||
username = strdup(argv[0]);
|
||||
node_name = strdup(argv[1]);
|
||||
} else {
|
||||
opal_output(0, "WARNING: Unhandled user@host-combination\n"); /* XXX */
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user