1
1

orte/util: strdup() in orte_util_decode_nidmap() since opal_argv_free() will free()

Signed-off-by: Gilles Gouaillardet <gilles@rist.or.jp>
Этот коммит содержится в:
Gilles Gouaillardet 2019-02-08 10:21:42 +09:00 коммит произвёл Ralph Castain
родитель 78152aec85
Коммит b80210c36a

Просмотреть файл

@ -384,7 +384,7 @@ int orte_util_decode_nidmap(opal_buffer_t *buf)
for (n=0; NULL != names[n]; n++) {
/* add this name to the pool */
nd = OBJ_NEW(orte_node_t);
nd->name = names[n];
nd->name = strdup(names[n]);
opal_pointer_array_set_item(orte_node_pool, n, nd);
/* set the topology - always default to homogeneous
* as that is the most common scenario */