Added .gitignore
Fixed a memory leak.