don't leak memory
Merge pull request #73 from monsta/no-leaks

Don't leak memory