diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/printing/nt_printing.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c index 7a3d14703f..f3d2513c3f 100644 --- a/source3/printing/nt_printing.c +++ b/source3/printing/nt_printing.c @@ -3264,6 +3264,7 @@ WERROR check_published_printers(void) if (!ADS_ERR_OK(ads_rc)) { DEBUG(3, ("ads_connect failed: %s\n", ads_errstr(ads_rc))); ads_destroy(&ads); + ads_kdestroy("MEMORY:prtpub_cache"); return WERR_ACCESS_DENIED; } @@ -3280,6 +3281,7 @@ WERROR check_published_printers(void) } ads_destroy(&ads); + ads_kdestroy("MEMORY:prtpub_cache"); return WERR_OK; } |