thread-safety fix

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@25999 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2008-01-23 16:47:58 +00:00
parent 83829d5c01
commit 8753546d14

View file

@ -405,7 +405,6 @@ myHostName()
{
host = [_hostCache objectForKey: address];
}
if (host == nil)
{
struct hostent *h;
@ -441,6 +440,10 @@ myHostName()
AUTORELEASE(host);
}
}
else
{
AUTORELEASE(RETAIN(host));
}
[_hostCacheLock unlock];
return host;
}