Skip to content

Commit

Permalink
fix leak
Browse files Browse the repository at this point in the history
Signed-off-by: Wenqi Mou <[email protected]>
  • Loading branch information
Tristan1900 committed Jan 31, 2025
1 parent e259425 commit adbd480
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion br/cmd/br/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ func Init(cmd *cobra.Command) (err error) {
return
}

if e := setupMemoryMonitoring(cmd.Context(), memtotal, memused); e != nil {
if e := setupMemoryMonitoring(GetDefaultContext(), memtotal, memused); e != nil {
// only log the error, don't fail initialization
log.Error("Failed to setup memory monitoring", zap.Error(e))
}
Expand Down

0 comments on commit adbd480

Please sign in to comment.