Cygwin: don't copy path_conv in fhandler_base::reset
There's a slim chance that duplicating fhandlers may end up duplicating path_conv_handle handles twice ending up with a handle leak, due to fhandler_base::reset calling path_conv::operator<< after the only caller, fhandler::copyto, already called path_conv::operator=. Just drop the call which basically duplicates what path_conv::operator= already did. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
parent
89b3833211
commit
c875ed3744
|
@ -43,7 +43,6 @@ LONG NO_COPY fhandler_base_overlapped::asio_close_counter;
|
|||
void
|
||||
fhandler_base::reset (const fhandler_base *from)
|
||||
{
|
||||
pc << from->pc;
|
||||
ra.rabuf = NULL;
|
||||
ra.ralen = 0;
|
||||
ra.raixget = 0;
|
||||
|
|
Loading…
Reference in New Issue