git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f2b6258
)
s3:printing: Fix temporary talloc context leak
author
Samuel Cabrero
<scabrero@samba.org>
Tue, 24 May 2022 11:25:03 +0000
(13:25 +0200)
committer
Jeremy Allison
<jra@samba.org>
Mon, 27 Jun 2022 15:50:29 +0000
(15:50 +0000)
Signed-off-by: Samuel Cabrero <scabrero@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/printing/nt_printing_ads.c
patch
|
blob
|
history
diff --git
a/source3/printing/nt_printing_ads.c
b/source3/printing/nt_printing_ads.c
index 0ec13d1bf1af8d2b985bf93dc8a289bd1a4a41be..017e0afe416529439b00bd8a41f92536a70b0f74 100644
(file)
--- 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);