Skip to content

Commit 61cb751

Browse files
authored
Merge pull request #193 from yaauie/fix-leak-of-file-handles
Fix leak of file handles that prevents gzip files from being cleaned up
2 parents 23a4f71 + 9043a39 commit 61cb751

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/logstash/outputs/s3/temporary_file_factory.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ class IOWrappedGzip
100100

101101
def initialize(file_io)
102102
@file_io = file_io
103-
@gzip_writer = Zlib::GzipWriter.open(file_io)
103+
@gzip_writer = Zlib::GzipWriter.new(file_io)
104104
end
105105

106106
def path

0 commit comments

Comments
 (0)