remove memory leak
Merge branch 'dev' of https://github.com/winnlab/Agusha into dev