comment on why descriptor is NOT leaked

This commit is contained in:
Richard Frith-Macdonald 2018-01-30 07:36:53 +00:00
parent ba7c5086d1
commit 3884a82c7a

View file

@ -2373,7 +2373,7 @@ NSString * const GSSOCKSRecvAddr = @"GSSOCKSRecvAddr";
{
return NO; // Can't both read and write.
}
d = dup(descriptor);
d = dup(descriptor); // d is closed by gzclose() later.
if (d < 0)
{
return NO; // No descriptor available.