summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2007-04-26 12:09:25 +0000
committerGünther Deschner <gd@samba.org>2007-04-26 12:09:25 +0000
commitbd1fc3e48ee573af9febb7166ba0647c14bd8aae (patch)
tree6aefde75ed0ffa24689c6e4fde7b2e92bd89ce9c
parent7e9c73f8e66b53a2cb763ee1a71524ee6d1463f5 (diff)
downloadsamba-bd1fc3e48ee573af9febb7166ba0647c14bd8aae.tar.gz
samba-bd1fc3e48ee573af9febb7166ba0647c14bd8aae.tar.xz
samba-bd1fc3e48ee573af9febb7166ba0647c14bd8aae.zip
r22524: Fix memleak.
Guenther
-rw-r--r--source/printing/nt_printing.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/printing/nt_printing.c b/source/printing/nt_printing.c
index 8829ef2b0c2..34f46c4a9cd 100644
--- a/source/printing/nt_printing.c
+++ b/source/printing/nt_printing.c
@@ -3274,6 +3274,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;
}
@@ -3290,6 +3291,7 @@ WERROR check_published_printers(void)
}
ads_destroy(&ads);
+ ads_kdestroy("MEMORY:prtpub_cache");
return WERR_OK;
}