From: Michael Adam Date: Wed, 6 May 2009 00:25:08 +0000 (+0200) Subject: s3:loadparm: free the file_list at the start of loadparm X-Git-Tag: tdb-1.1.5~611 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6708b926a47b53a2984de6af9bb9d319ed6efe58;p=thirdparty%2Fsamba.git 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 --- diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index ba7c212f7f2..da0bf17720c 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();