]> sourceware.org Git - newlib-cygwin.git/commit
Cygwin: don't copy path_conv in fhandler_base::reset
authorCorinna Vinschen <corinna@vinschen.de>
Wed, 10 Feb 2021 09:33:36 +0000 (10:33 +0100)
committerCorinna Vinschen <corinna@vinschen.de>
Wed, 10 Feb 2021 09:42:38 +0000 (10:42 +0100)
commitc875ed3744968b19f7dd8ed6335710be55617d36
tree2832f8bbd30ff2a6d264085f7feaf82ef7c41b4f
parent89b3833211a850a165a3c844acb19a66524c3cc2
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>
winsup/cygwin/fhandler.cc
This page took 0.031852 seconds and 5 git commands to generate.