make sure to delete tempfiles
This commit is contained in:
@@ -10,6 +10,9 @@ module Iqdb
|
|||||||
tempfile = Tempfile.new("iqdb-#{$PROCESS_ID}")
|
tempfile = Tempfile.new("iqdb-#{$PROCESS_ID}")
|
||||||
@download = Downloads::File.new(source, tempfile.path)
|
@download = Downloads::File.new(source, tempfile.path)
|
||||||
@download.download!
|
@download.download!
|
||||||
|
ensure
|
||||||
|
tempfile.close
|
||||||
|
tempfile.unlink
|
||||||
end
|
end
|
||||||
|
|
||||||
def find_similar
|
def find_similar
|
||||||
|
|||||||
Reference in New Issue
Block a user