Fixed memory leak.
Merge pull request #72 from bcsanches/master

Fixed memory leak.