Fixed leak of dynamically-allocated data.
Merge pull request #20 from jroersma/memory-leak-fix

Fixed leak of dynamically-allocated data.