Dirty but working solution for issue #50

Well what do you know..  ```continue 2;``` is actually what makes memory to leak.