Dirty but working solution for issue #50

I tested and it indeed leaked for me too. Experimentally I found out that ```continue 2``` was a line to cause leak. Well, I'm not that good into a library to make a better patch, however this worked for me.