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@53d83ba1c5
Этот коммит содержится в:
родитель
53d83ba1c5
Коммит
13ea4e4673
@ -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) {
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user