]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
auth: Add missing talloc_free() in error code path.
authorJeremy Allison <jra@samba.org>
Wed, 15 Jan 2025 18:21:19 +0000 (10:21 -0800)
committerJule Anger <janger@samba.org>
Mon, 3 Feb 2025 14:53:10 +0000 (14:53 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15782

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
Autobuild-User(master): Günther Deschner <gd@samba.org>
Autobuild-Date(master): Thu Jan 16 14:32:39 UTC 2025 on atb-devel-224

(cherry picked from commit c514ce8dcadcbbf0d86f3038d2be0f9253a76b75)

auth/kerberos/kerberos_pac.c

index b6272ac15eb4842d4e99dd10c68e34b562cb9236..1f7d3e7ef262556a686b909890702c98f0929777 100644 (file)
@@ -360,6 +360,7 @@ NTSTATUS kerberos_decode_pac(TALLOC_CTX *mem_ctx,
                if (ret) {
                        DEBUG(5, ("PAC Decode: Failed to verify the service "
                                  "signature: %s\n", error_message(ret)));
+                       talloc_free(tmp_ctx);
                        return NT_STATUS_ACCESS_DENIED;
                }