Fixed memory leak when insertion fails.
Merge pull request #1 from eadle/master

Fixed memory leak when insertion fails.