Skip to content

Commit

Permalink
Add missing file close (#3001)
Browse files Browse the repository at this point in the history
  • Loading branch information
Samze authored Jul 10, 2024
1 parent 8c69330 commit 25cc33f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cf/api/buildpack_bits.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ func (repo CloudControllerBuildpackBitsRepository) CreateBuildpackZipFile(buildp
if err != nil {
return nil, "", fmt.Errorf("%s: %s", T("Couldn't open buildpack file"), err.Error())
}
defer specifiedFile.Close()
err = normalizeBuildpackArchive(specifiedFile, zipFileToUpload)
if err != nil {
return nil, "", zipErrorHelper(err)
Expand Down

0 comments on commit 25cc33f

Please sign in to comment.