open file handles never closed
When metadata is extracted, e.g. self.parser = createParser(self.u_filename, self.filename) self.metadata = extractMetadata(self.parser) The file handle used by hachoir is never closed. Instructing python to forcefully delete the parser and metadata objects using the del statement does not even close the file handle. It is only closed when the process exits. This is most unfortunate if for instance the user wants to unmount a device and the process is still running.