Skip to content

Commit

Permalink
Remove call to key.Release in SearchKeys loop
Browse files Browse the repository at this point in the history
  • Loading branch information
hslatman committed Jul 29, 2024
1 parent c4593f5 commit 760046c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion kms/mackms/mackms.go
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,6 @@ func (k *MacKMS) SearchKeys(req *apiv1.SearchKeysRequest) (*apiv1.SearchKeysResp
results := make([]apiv1.SearchKeyResult, len(keys))
for i, key := range keys {
d := cf.NewDictionaryRef(cf.TypeRef(key.TypeRef()))
defer key.Release()
defer d.Release()

name := uri.New(Scheme, url.Values{})
Expand Down

0 comments on commit 760046c

Please sign in to comment.