diff --git a/lib/wicked_pdf/binary.rb b/lib/wicked_pdf/binary.rb index c7c7f348..3140b3c4 100644 --- a/lib/wicked_pdf/binary.rb +++ b/lib/wicked_pdf/binary.rb @@ -38,7 +38,9 @@ def xvfb_run_path private def retrieve_binary_version - _stdin, stdout, _stderr = Open3.popen3(@path + ' -V') + stdin, stdout, stderr = Open3.popen3(@path + ' -V') + stdin.close + stderr.close parse_version_string(stdout.gets(nil)) rescue StandardError default_version