1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-10 01:48:00 +00:00

Avoid potential memory leak.

[originally from svn r2278]
This commit is contained in:
Owen Dunn 2002-12-04 12:53:42 +00:00
parent 06a8f88e58
commit 269557cb64

View File

@ -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)