Skip to content

Commit

Permalink
Merge pull request #557 from smallstep/herman/fix-seckeychainitemref-…
Browse files Browse the repository at this point in the history
…double-release

Remove call to `key.Release` in `SearchKeys` loop
  • Loading branch information
hslatman authored Jul 29, 2024
2 parents c4593f5 + 760046c commit 269ef4b
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 269ef4b

Please sign in to comment.