Fixes #2: fixed leak