diff options
author | Ken Brown <kbrown@cornell.edu> | 2019-04-14 19:16:00 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2019-04-16 12:54:43 +0200 |
commit | 3ef03376c5b8de8b2a80aded2f3602931cc26ae5 (patch) | |
tree | ec4f4b6ff59245c0b2eac4d58dee65178ad08866 | |
parent | d243b3c70ea4db87432bccc9437d45f4b740f2ff (diff) | |
download | cygnal-3ef03376c5b8de8b2a80aded2f3602931cc26ae5.tar.gz cygnal-3ef03376c5b8de8b2a80aded2f3602931cc26ae5.tar.bz2 cygnal-3ef03376c5b8de8b2a80aded2f3602931cc26ae5.zip |
Cygwin: FIFO: fix fifo_client_handler::close
Make sure that fhandler_base::close rather than fhandler_fifo::close
is called on the fhandler. Also, delete the fhandler, since we
allocated it.
-rw-r--r-- | winsup/cygwin/fhandler_fifo.cc | 5 |
1 files changed, 4 insertions, 1 deletions
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) |