Memory leak fix in GoodBuildDep.