From 13ea4e467373580e158c07cb762543af346bf320 Mon Sep 17 00:00:00 2001 From: Ralph Castain Date: Wed, 11 Jun 2008 14:42:47 +0000 Subject: [PATCH] Be consistent - since we don't strdup the other values for param, don't strdup this one. This allows r18645 to fix the memory corruption issue, but also allows us to resolve the memory leaks cited by CID 1039 This commit was SVN r18646. The following SVN revision numbers were found above: r18645 --> open-mpi/ompi@53d83ba1c5c16479dcab92821e361e02190e4680 --- orte/tools/orterun/orterun.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/orte/tools/orterun/orterun.c b/orte/tools/orterun/orterun.c index 8fab785fde..16c4ab1ef4 100644 --- a/orte/tools/orterun/orterun.c +++ b/orte/tools/orterun/orterun.c @@ -1556,7 +1556,7 @@ static int create_app(int argc, char* argv[], orte_app_context_t **app_ptr, } /* --enable-orterun-prefix-default was given to orterun */ else { - param = strdup(opal_install_dirs.prefix); + param = opal_install_dirs.prefix; } if (NULL != param) {