- mca_base_param_reg_string_name allocates default_pml.
As it is strdup, just free(default_pml). cmr:v1.5 This commit was SVN r22955.
Этот коммит содержится в:
родитель
1919ba225d
Коммит
a48a11821b
@ -143,22 +143,24 @@ int mca_pml_base_open(void)
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#if MCA_pml_DIRECT_CALL
|
#if MCA_pml_DIRECT_CALL
|
||||||
opal_pointer_array_add(&mca_pml_base_pml,
|
opal_pointer_array_add(&mca_pml_base_pml,
|
||||||
stringify(MCA_pml_DIRECT_CALL_COMPONENT));
|
stringify(MCA_pml_DIRECT_CALL_COMPONENT));
|
||||||
#else
|
#else
|
||||||
{
|
{
|
||||||
char* default_pml = NULL;
|
char* default_pml = NULL;
|
||||||
|
|
||||||
mca_base_param_reg_string_name("pml", NULL,
|
mca_base_param_reg_string_name("pml", NULL,
|
||||||
"Specify a specific PML to use",
|
"Specify a specific PML to use",
|
||||||
false, false, "", &default_pml);
|
false, false, "", &default_pml);
|
||||||
|
|
||||||
if( (0 == strlen(default_pml)) || (default_pml[0] == '^') ) {
|
if( (0 == strlen(default_pml)) || (default_pml[0] == '^') ) {
|
||||||
opal_pointer_array_add(&mca_pml_base_pml, strdup("ob1"));
|
opal_pointer_array_add(&mca_pml_base_pml, strdup("ob1"));
|
||||||
opal_pointer_array_add(&mca_pml_base_pml, strdup("cm"));
|
opal_pointer_array_add(&mca_pml_base_pml, strdup("cm"));
|
||||||
} else {
|
} else {
|
||||||
opal_pointer_array_add(&mca_pml_base_pml, strdup(default_pml));
|
opal_pointer_array_add(&mca_pml_base_pml, strdup(default_pml));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
free (default_pml);
|
||||||
}
|
}
|
||||||
#if OPAL_ENABLE_FT_CR == 1
|
#if OPAL_ENABLE_FT_CR == 1
|
||||||
/*
|
/*
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user