auth:kerberos: Fix resource leak in smb_krb5_update_keytab()
commit256471299ac2c19d813f98f513ac1a444bad7fca
authorPavel Filipenský <pfilipensky@samba.org>
Wed, 26 Jul 2023 14:25:26 +0000 (26 16:25 +0200)
committerStefan Metzmacher <metze@samba.org>
Mon, 31 Jul 2023 10:56:54 +0000 (31 10:56 +0000)
tree763d15b3621eac3f941ebae71c7815653cc57e05
parentf1356805ba505e28b2daccd18b044b3c7255064c
auth:kerberos: Fix resource leak in smb_krb5_update_keytab()

Reported by Red Hat internal covscan
leaked_storage: Variable "keytab" 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>
source4/auth/kerberos/srv_keytab.c