Skip to content

Commit

Permalink
fix: close file (#2859)
Browse files Browse the repository at this point in the history
Signed-off-by: guoguangwu <[email protected]>
  • Loading branch information
testwill authored and ngjaying committed May 24, 2024
1 parent c121003 commit b525410
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/server/rpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ func (t *Server) Export(file string, reply *string) error {
if err != nil {
return err
}
defer f.Close()
exported, counts, err := rulesetProcessor.Export()
if err != nil {
return err
Expand Down

0 comments on commit b525410

Please sign in to comment.