sha1-file: release strbuf after use