fix leaks on Analyse
add doc