mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-09-24 10:29:25 +02:00
- Don't free argument to putenv() after use (in setenv() replacement).
Report from Seigo Tanimura <tanimura@r.dl.itc.u-tokyo.ac.jp>
This commit is contained in:
parent
a1ad4802ff
commit
f09b07a971
@ -1,6 +1,8 @@
|
|||||||
20000315
|
20000315
|
||||||
- Fix broken CFLAGS handling during search for OpenSSL. Fixes va_list
|
- Fix broken CFLAGS handling during search for OpenSSL. Fixes va_list
|
||||||
problems with gcc/Solaris.
|
problems with gcc/Solaris.
|
||||||
|
- Don't free argument to putenv() after use (in setenv() replacement).
|
||||||
|
Report from Seigo Tanimura <tanimura@r.dl.itc.u-tokyo.ac.jp>
|
||||||
|
|
||||||
20000314
|
20000314
|
||||||
- Include macro for IN6_IS_ADDR_V4MAPPED. Report from
|
- Include macro for IN6_IS_ADDR_V4MAPPED. Report from
|
||||||
|
@ -154,7 +154,10 @@ int setenv(const char *name, const char *value, int overwrite)
|
|||||||
|
|
||||||
result = putenv(env_string);
|
result = putenv(env_string);
|
||||||
|
|
||||||
xfree(env_string);
|
/* Putenv doesn't copy the env_string, so we need to keep a copy of it */
|
||||||
|
/* around. This leaks a bit of memory, but it doesn't matter */
|
||||||
|
/* for our (OpenSSH port ) use: setenv is only used twice in ssh-agent */
|
||||||
|
/* xfree(env_string); */
|
||||||
|
|
||||||
return(result);
|
return(result);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user