summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2007-04-26 12:09:25 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:19:42 -0500
commit3e8283cf7c5892bcb958ae0028b2a61484088583 (patch)
treefcad9ad90133b69aa571b3c038bd5ca362d92afa
parent0d1c821700163b35be0aca166d4e4b22decd2891 (diff)
downloadsamba-3e8283cf7c5892bcb958ae0028b2a61484088583.tar.gz
samba-3e8283cf7c5892bcb958ae0028b2a61484088583.tar.bz2
samba-3e8283cf7c5892bcb958ae0028b2a61484088583.zip
r22524: Fix memleak.
Guenther (This used to be commit e55c52f6547157f2684d6eb7ba14de7a0234324d)
-rw-r--r--source3/printing/nt_printing.c2
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;
}