hanklords/flickraw — pull request #56 by cpuguy83 (2013-06-18 14:16:03+00:00)
Title: Fixes open file leak when a path is sent instead of an I/O stream

upload_photo does not properly close out files leading to a open file leak.
When an I/O stream is passed we probably don't want to close the file as the sender may still want it open, but when a file path is sent we should be closing out the file