lib:krb5_wrap: Fix resource leak in smb_krb5_kt_seek_and_delete_old_entries
authorPavel Filipenský <pfilipensky@samba.org>
Wed, 26 Jul 2023 20:37:51 +0000 (22:37 +0200)
committerStefan Metzmacher <metze@samba.org>
Mon, 31 Jul 2023 10:56:54 +0000 (10:56 +0000)
commitc58a714232b1c904359d623e28ac53ed6ef0f30e
tree894eab4e04cb49e1ed5832e800b0dc7834709e6d
parent3ef5162dcdd1a89497163cd361a2b61d6e1a1540
lib:krb5_wrap: Fix resource leak in smb_krb5_kt_seek_and_delete_old_entries

Reported by Red Hat internal covscan
leaked_storage: Variable "cursor" going out of scope leaks the storage it points to.

Signed-off-by: Pavel Filipenský <pfilipensky@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
lib/krb5_wrap/krb5_samba.c