fixed memory leak dependency reporting (was wrong)