Fix a whole bunch of potential memory leaks (and some real ones too) in error conditions.
Fix a whole bunch of potential memory leaks (and some real ones too)
in error conditions.

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