fix possible mem leak
Merge pull request #7 from bgaff/master

Fix small possible mem leak in new API