Fix two small resource leaks to make coverity happy
Free topbuild, makes coverity happy