Permalink
Browse files

Merge pull request #612 from 13k/master

Fog storage leaks a file descriptor
  • Loading branch information...
2 parents 3fe8c8c + fe9d6df commit e0b1395ca7539300727b437acc214046b6ae12f9 @bensie bensie committed Feb 14, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/carrierwave/storage/fog.rb
View
1 lib/carrierwave/storage/fog.rb
@@ -243,6 +243,7 @@ def store(new_file)
:key => path,
:public => @uploader.fog_public
}.merge(@uploader.fog_attributes))
+ fog_file.close if fog_file && !fog_file.closed?
true
end

0 comments on commit e0b1395

Please sign in to comment.