Plugged a couple of potential return value problems, memory leaks, and descriptor leaks.
Plugged a couple of potential return value problems, memory leaks, and
descriptor leaks.

sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator