зеркало из https://github.com/github/putty.git
Avoid potential memory leak.
[originally from svn r2278]
This commit is contained in:
Родитель
06a8f88e58
Коммит
269557cb64
|
@ -106,10 +106,7 @@ void sk_cleanup(void)
|
|||
|
||||
char *error_string(int error)
|
||||
{
|
||||
char *ret = smalloc(strlen(strerror(error)) +
|
||||
strlen("Network error: "));
|
||||
sprintf(ret, "Network error: %s",strerror(error));
|
||||
return ret;
|
||||
return strerror(error);
|
||||
}
|
||||
|
||||
SockAddr sk_namelookup(char *host, char **canonicalname)
|
||||
|
|
Загрузка…
Ссылка в новой задаче