git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
31a193b
)
r22524: Fix memleak.
author
Günther Deschner
<gd@samba.org>
Thu, 26 Apr 2007 12:09:25 +0000
(12:09 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 17:19:42 +0000
(12:19 -0500)
Guenther
source/printing/nt_printing.c
patch
|
blob
|
history
diff --git
a/source/printing/nt_printing.c
b/source/printing/nt_printing.c
index 7a3d14703f78d7c574c46c0558d10150ed2319a9..f3d2513c3f6fe1b1f8f8bf67d6eac04f61721b7f 100644
(file)
--- a/
source/printing/nt_printing.c
+++ b/
source/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;
}