diff --git a/wave_reader.cpp b/wave_reader.cpp index f27947c..749f953 100644 --- a/wave_reader.cpp +++ b/wave_reader.cpp @@ -119,10 +119,6 @@ vector *WaveReader::readData(unsigned bytesToRead, bool headerBytes, bool (((unsigned)bytes < bytesToRead) && headerBytes && (fileDescriptor != STDIN_FILENO))) { delete data; - if (fileDescriptor != STDIN_FILENO) { - close(fileDescriptor); - } - ostringstream oss; oss << "Error while reading " << getFilename() << ", file is corrupted"; throw ErrorReporter(oss.str());