summaryrefslogtreecommitdiff
path: root/source3/param
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2009-05-06 02:25:08 +0200
committerMichael Adam <obnox@samba.org>2009-05-12 08:41:00 +0200
commit6708b926a47b53a2984de6af9bb9d319ed6efe58 (patch)
treebc5e175c3f18e0869e38ca8dbc0b5317d736cd3b /source3/param
parent6aef9bbbf7160cf9e79c50e13632bf29efaedb65 (diff)
downloadsamba-6708b926a47b53a2984de6af9bb9d319ed6efe58.tar.gz
samba-6708b926a47b53a2984de6af9bb9d319ed6efe58.tar.bz2
samba-6708b926a47b53a2984de6af9bb9d319ed6efe58.zip
s3:loadparm: free the file_list at the start of loadparm
This should reduce the waste of memory when using "config file" or "config backend". It also reduces the risk of triggering reloads due to some old unused files being checked. Michael
Diffstat (limited to 'source3/param')
-rw-r--r--source3/param/loadparm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index ba7c212f7f..da0bf17720 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -9048,6 +9048,8 @@ bool lp_load_ex(const char *pszFname,
init_globals(! initialize_globals);
debug_init();
+ free_file_list();
+
if (save_defaults) {
init_locals();
lp_save_defaults();