diff --git a/winsup/cygwin/fhandler_fifo.cc b/winsup/cygwin/fhandler_fifo.cc index 2da579b95..f9796f300 100644 --- a/winsup/cygwin/fhandler_fifo.cc +++ b/winsup/cygwin/fhandler_fifo.cc @@ -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)