jnicklas/carrierwave — comment on commit ba8b9d4de5519a367d7731662d8efa8472c2f999
File:  line 0
By geemus:

@yfeldblum I'm fairly certain that GC will take care of it, but it is a better practice to close it yourself. I've looked a bit also at doing the closing on the fog side and things like retries make it difficult to ensure the right timing. Since fog assumes that you provide an opened file it (so far) has presumed that you can close it when you are done with it as well. I'd prefer to leave it this way since it makes things simpler (my attempts to add an ensure + close broke a lot of stuff). I may be just trying to do it wrong obviously, but it should be fairly straightforward for users to close their own things when they know they are done with them.