Skip to content

Commit

Permalink
Merge pull request flike#632 from testwill/close_file
Browse files Browse the repository at this point in the history
fix: close file
  • Loading branch information
flike authored May 17, 2024
2 parents 1fc233b + ad854b1 commit a15add4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions proxy/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -575,6 +575,7 @@ func (s *Server) saveBlackSql() error {
)
return err
}
defer f.Close()

for _, v := range s.blacklistSqls[s.blacklistSqlsIndex].sqls {
v = v + "\n"
Expand Down

0 comments on commit a15add4

Please sign in to comment.