git-verify-pack: free pack after use and a cleanup