diff --git a/src/Platform/Unix/Pipe.cpp b/src/Platform/Unix/Pipe.cpp index 7b2950ff..bdae238d 100644 --- a/src/Platform/Unix/Pipe.cpp +++ b/src/Platform/Unix/Pipe.cpp @@ -36,9 +36,15 @@ namespace VeraCrypt void Pipe::Close () { if (ReadFileDescriptor != -1) + { close (ReadFileDescriptor); + ReadFileDescriptor = -1; + } if (WriteFileDescriptor != -1) + { close (WriteFileDescriptor); + WriteFileDescriptor = -1; + } } int Pipe::GetReadFD ()