the FileInputStream is never closed here:
public void parseHeif(File file) throws IOException, TikaException {
try {
com.drew.metadata.Metadata heifMetadata = new
com.drew.metadata.Metadata();
heifMetadata = HeifMetadataReader.readMetadata(new
FileInputStream(file));
handle(heifMetadata);
} catch (IOException e) {
throw e;
} catch (MetadataException e) {
throw new TikaException("Can't process Heif data", e);
}
}
