Skip to content

Commit

Permalink
httphandlers/addrecords: close multipart-part after use
Browse files Browse the repository at this point in the history
  • Loading branch information
micvbang committed Jul 8, 2024
1 parent 7d6d764 commit 0e5a782
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/httphandlers/addrecords.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ func AddRecords(log logger.Logger, s RecordsAdder) http.HandlerFunc {
w.WriteHeader(http.StatusInternalServerError)
return
}
part.Close()
records = append(records, record)
}

Expand Down

0 comments on commit 0e5a782

Please sign in to comment.