Skip to content

Commit b80210c

Browse files
ggouaillardetrhc54
authored andcommitted
orte/util: strdup() in orte_util_decode_nidmap() since opal_argv_free() will free()
Signed-off-by: Gilles Gouaillardet <gilles@rist.or.jp>
1 parent 78152ae commit b80210c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

orte/util/nidmap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ int orte_util_decode_nidmap(opal_buffer_t *buf)
384384
for (n=0; NULL != names[n]; n++) {
385385
/* add this name to the pool */
386386
nd = OBJ_NEW(orte_node_t);
387-
nd->name = names[n];
387+
nd->name = strdup(names[n]);
388388
opal_pointer_array_set_item(orte_node_pool, n, nd);
389389
/* set the topology - always default to homogeneous
390390
* as that is the most common scenario */

0 commit comments

Comments
 (0)