From b80210c36afc8ff6d908044870ef23c218c86092 Mon Sep 17 00:00:00 2001 From: Gilles Gouaillardet Date: Fri, 8 Feb 2019 10:21:42 +0900 Subject: [PATCH] orte/util: strdup() in orte_util_decode_nidmap() since opal_argv_free() will free() Signed-off-by: Gilles Gouaillardet --- orte/util/nidmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/orte/util/nidmap.c b/orte/util/nidmap.c index f35916b2a9..39feb9677b 100644 --- a/orte/util/nidmap.c +++ b/orte/util/nidmap.c @@ -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 */