From: Samuel Cabrero Date: Tue, 24 May 2022 11:25:03 +0000 (+0200) Subject: s3:printing: Fix temporary talloc context leak X-Git-Tag: tevent-0.13.0~309 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b69b62db435e684b4c3b1c3d6583ef77deadfab;p=thirdparty%2Fsamba.git s3:printing: Fix temporary talloc context leak Signed-off-by: Samuel Cabrero Reviewed-by: Jeremy Allison --- diff --git a/source3/printing/nt_printing_ads.c b/source3/printing/nt_printing_ads.c index 0ec13d1bf1a..017e0afe416 100644 --- a/source3/printing/nt_printing_ads.c +++ b/source3/printing/nt_printing_ads.c @@ -742,6 +742,7 @@ WERROR check_published_printers(struct messaging_context *msg_ctx) ads = ads_init(lp_realm(), lp_workgroup(), NULL, ADS_SASL_PLAIN); if (!ads) { DEBUG(3, ("ads_init() failed\n")); + TALLOC_FREE(tmp_ctx); return WERR_RPC_S_SERVER_UNAVAILABLE; } old_krb5ccname = getenv(KRB5_ENV_CCNAME);