lib/krb5: build_logon_name use common 'out' do not leak 's2'
commit5838fcaa61659b3802539597be3337aaff2f2ea3
authorJeffrey Altman <jaltman@secure-endpoints.com>
Mon, 17 Jan 2022 00:13:26 +0000 (16 19:13 -0500)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Mon, 17 Jan 2022 00:13:26 +0000 (16 19:13 -0500)
tree4aa6240e2fc12270981c19741020e8efbe3d83c0
parent6be242d46ef53d2388c9012d575f27c8587f7f12
lib/krb5: build_logon_name use common 'out' do not leak 's2'

CHECK(ret, func(), label) jumps to the label if the function
returns non-zero.  As a result it bypasses the free(s2) call.
Use the common out label to free(s2).

Change-Id: I9a79df669e6407a82991f4a849fc16a0afaae561
lib/krb5/pac.c