Per the specification for putenv (http://pubs.opengroup.org/onlinepubs/009604599/functions/putenv.html) the string given to putenv becomes part of the environment. The string must not be changed or freed.
cmr:v1.7 This commit was SVN r27578.
Этот коммит содержится в:
родитель
8658bbc902
Коммит
a754674fd7
@ -272,7 +272,6 @@ int opal_info_register_components(opal_pointer_array_t *mca_types,
|
||||
/* can't manipulate it directly, so make a copy first */
|
||||
asprintf(&target, "%s=", env);
|
||||
putenv(target);
|
||||
free(target);
|
||||
}
|
||||
free(env);
|
||||
}
|
||||
|
@ -108,7 +108,6 @@ int orte_info_register_components(opal_pointer_array_t *mca_types,
|
||||
/* can't manipulate it directly, so make a copy first */
|
||||
asprintf(&target, "%s=", env);
|
||||
putenv(target);
|
||||
free(target);
|
||||
}
|
||||
free(env);
|
||||
}
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user