]> sourceware.org Git - newlib-cygwin.git/commitdiff
Cygwin: FIFO: fix fifo_client_handler::close
authorKen Brown <kbrown@cornell.edu>
Sun, 14 Apr 2019 19:16:00 +0000 (19:16 +0000)
committerCorinna Vinschen <corinna@vinschen.de>
Tue, 16 Apr 2019 10:54:43 +0000 (12:54 +0200)
Make sure that fhandler_base::close rather than fhandler_fifo::close
is called on the fhandler.  Also, delete the fhandler, since we
allocated it.

winsup/cygwin/fhandler_fifo.cc

index 2da579b954f21d7406c9b22b77ee093c8ed83758..f9796f300a0f6c65bb9d38a8aed7026a627ec9b1 100644 (file)
@@ -809,7 +809,10 @@ fifo_client_handler::close ()
   int res = 0;
 
   if (fh)
-    res = fh->close ();
+    {
+      res = fh->fhandler_base::close ();
+      delete fh;
+    }
   if (connect_evt)
     CloseHandle (connect_evt);
   if (dummy_evt)
This page took 0.033087 seconds and 5 git commands to generate.