]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4-kdc: Fix memory leak in FAST cookie handling
authorAndrew Bartlett <abartlet@samba.org>
Tue, 8 Mar 2022 09:46:02 +0000 (22:46 +1300)
committerStefan Metzmacher <metze@samba.org>
Fri, 11 Mar 2022 11:05:55 +0000 (11:05 +0000)
The call to sdb_free_entry() was forgotten.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15000

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Fri Mar 11 11:05:55 UTC 2022 on sn-devel-184

source4/kdc/hdb-samba4.c

index b10cc37e6082596fda17d5bdae03b65e6d7f502d..5720dfadc1f151032daf6d033431ad3ae6b456c1 100644 (file)
@@ -229,6 +229,7 @@ static krb5_error_code hdb_samba4_fetch_fast_cookie(krb5_context context,
        ret = sdb_entry_ex_to_hdb_entry_ex(context,
                                           &sdb_entry_ex,
                                           entry_ex);
+       sdb_free_entry(&sdb_entry_ex);
        TALLOC_FREE(mem_ctx);
 
        return ret;