svn commit: samba r3181 - in branches/SAMBA_4_0/source: passdb smbd
tridge at samba.org
tridge at samba.org
Mon Oct 25 02:57:21 GMT 2004
Author: tridge
Date: 2004-10-25 02:57:20 +0000 (Mon, 25 Oct 2004)
New Revision: 3181
WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/branches/SAMBA_4_0/source&rev=3181&nolog=1
Log:
shutdown the secrets db on exit so we don't constantly get talloc leak warnings
Modified:
branches/SAMBA_4_0/source/passdb/secrets.c
branches/SAMBA_4_0/source/smbd/process_standard.c
Changeset:
Modified: branches/SAMBA_4_0/source/passdb/secrets.c
===================================================================
--- branches/SAMBA_4_0/source/passdb/secrets.c 2004-10-25 02:36:12 UTC (rev 3180)
+++ branches/SAMBA_4_0/source/passdb/secrets.c 2004-10-25 02:57:20 UTC (rev 3181)
@@ -45,6 +45,12 @@
}
}
+/* close the secrets database */
+void secrets_shutdown(void)
+{
+ talloc_free(tdb);
+}
+
/* open up the secrets database */
BOOL secrets_init(void)
{
Modified: branches/SAMBA_4_0/source/smbd/process_standard.c
===================================================================
--- branches/SAMBA_4_0/source/smbd/process_standard.c 2004-10-25 02:36:12 UTC (rev 3180)
+++ branches/SAMBA_4_0/source/smbd/process_standard.c 2004-10-25 02:57:20 UTC (rev 3181)
@@ -101,6 +101,9 @@
which makes leak checking easier */
init_iconv();
+ /* the secrets db should really hang off the connection structure */
+ secrets_shutdown();
+
/* terminate this process */
exit(0);
}
More information about the samba-cvs
mailing list