mariocesar/sorl-thumbnail — pull request #177 by olevinsky (2013-11-14 16:04:44+00:00)
Title: Fixed descriptor leak in convert engine

#160

if source file does not exists, `source.read()` on line 53 raises “IOError: No such file or directory...”.

### Descriptors:

* Line 51: `handle, tmp = mkstemp()`, handle – first file descriptor.
* Line 52: `os.fdopen(fd, 'wb')` – got second file descriptor.

After exception leave “with” block, second descritor will be closed, but first descriptor still “open”.