From: Joseph Sutton Date: Thu, 10 Aug 2023 03:54:21 +0000 (+1200) Subject: s4:kdc: Free samba_kdc_seq context on failure to allocate memory X-Git-Tag: tevent-0.16.0~1005 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=79738178ec2b18b1bca05b8eef37ce42d767a10c;p=thirdparty%2Fsamba.git s4:kdc: Free samba_kdc_seq context on failure to allocate memory Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- diff --git a/source4/kdc/db-glue.c b/source4/kdc/db-glue.c index 22990e5133e..4230ca3543c 100644 --- a/source4/kdc/db-glue.c +++ b/source4/kdc/db-glue.c @@ -2992,7 +2992,7 @@ static krb5_error_code samba_kdc_seq(krb5_context context, if (!mem_ctx) { ret = ENOMEM; krb5_set_error_message(context, ret, "samba_kdc_seq: talloc_named() failed!"); - return ret; + goto out; } while (priv->index < priv->count) {