summaryrefslogtreecommitdiffhomepage
path: root/pkg/refs
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2021-06-10 19:55:33 +0000
committergVisor bot <gvisor-bot@google.com>2021-06-10 19:55:33 +0000
commit203df401b853b9916b4a1cdec702f096fb5ed828 (patch)
treea9b8ce9a6f8b983fbd610e54bc6b6c1a761b5e99 /pkg/refs
parent767289c84bbfc7bb98655924661d4ce850bb3070 (diff)
parent8d426b73818cf07aeee3db88478a00b80ad9aafe (diff)
Merge release-20210601.0-41-g8d426b738 (automated)
Diffstat (limited to 'pkg/refs')
-rw-r--r--pkg/refs/refcounter.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/refs/refcounter.go b/pkg/refs/refcounter.go
index 4aecb8007..1bbcae045 100644
--- a/pkg/refs/refcounter.go
+++ b/pkg/refs/refcounter.go
@@ -261,8 +261,8 @@ func (l *LeakMode) Get() interface{} {
}
// String implements flag.Value.
-func (l *LeakMode) String() string {
- switch *l {
+func (l LeakMode) String() string {
+ switch l {
case UninitializedLeakChecking:
return "uninitialized"
case NoLeakChecking:
@@ -272,7 +272,7 @@ func (l *LeakMode) String() string {
case LeaksLogTraces:
return "log-traces"
}
- panic(fmt.Sprintf("invalid ref leak mode %d", *l))
+ panic(fmt.Sprintf("invalid ref leak mode %d", l))
}
// leakMode stores the current mode for the reference leak checker.