auth:kerberos: Fix resource leak in parse_principal()
commitdfc26dc494eb9d80fe5b19b0ed41cedd0e187dbd
authorPavel Filipenský <pfilipensky@samba.org>
Wed, 26 Jul 2023 14:28:36 +0000 (26 16:28 +0200)
committerStefan Metzmacher <metze@samba.org>
Mon, 31 Jul 2023 10:56:54 +0000 (31 10:56 +0000)
treed26d81f865e4bcacc8ac7cdfefd0f099c753504c
parentf374da1dd91f20b567c76e821afdbeeae8eacb98
auth:kerberos: Fix resource leak in parse_principal()

Reported by Red Hat internal covscan
leaked_storage: Variable "princ" 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/kerberos_util.c