[xcodeproj_ext] Fix memory leaks when rasing
Merge pull request #165 from CocoaPods/memory

[xcodeproj_ext] Fix a memory leaks when raising