Don't free the envar that gets putenv'd as that messes up the environ
This commit was SVN r24660.
Этот коммит содержится в:
родитель
2634f6401a
Коммит
c78531ce8a
@ -168,7 +168,7 @@ static int rte_init(void)
|
||||
}
|
||||
asprintf(&envar, "%s=%s", cs_env, string_key);
|
||||
putenv(envar);
|
||||
free(envar);
|
||||
/* cannot free the envar as that messes of our environ */
|
||||
free(cs_env);
|
||||
free(string_key);
|
||||
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user