fix memory leak added by noclobber