svn commit: samba r22524 - in branches: SAMBA_3_0/source/printing
SAMBA_3_0_25/source/printing
gd at samba.org
gd at samba.org
Thu Apr 26 12:09:26 GMT 2007
Author: gd
Date: 2007-04-26 12:09:25 +0000 (Thu, 26 Apr 2007)
New Revision: 22524
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=22524
Log:
Fix memleak.
Guenther
Modified:
branches/SAMBA_3_0/source/printing/nt_printing.c
branches/SAMBA_3_0_25/source/printing/nt_printing.c
Changeset:
Modified: branches/SAMBA_3_0/source/printing/nt_printing.c
===================================================================
--- branches/SAMBA_3_0/source/printing/nt_printing.c 2007-04-26 09:32:26 UTC (rev 22523)
+++ branches/SAMBA_3_0/source/printing/nt_printing.c 2007-04-26 12:09:25 UTC (rev 22524)
@@ -3264,6 +3264,7 @@
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 @@
}
ads_destroy(&ads);
+ ads_kdestroy("MEMORY:prtpub_cache");
return WERR_OK;
}
Modified: branches/SAMBA_3_0_25/source/printing/nt_printing.c
===================================================================
--- branches/SAMBA_3_0_25/source/printing/nt_printing.c 2007-04-26 09:32:26 UTC (rev 22523)
+++ branches/SAMBA_3_0_25/source/printing/nt_printing.c 2007-04-26 12:09:25 UTC (rev 22524)
@@ -3274,6 +3274,7 @@
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 @@
}
ads_destroy(&ads);
+ ads_kdestroy("MEMORY:prtpub_cache");
return WERR_OK;
}
More information about the samba-cvs
mailing list