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:
6aef9bb
)
s3:loadparm: free the file_list at the start of loadparm
author
Michael Adam
<obnox@samba.org>
Wed, 6 May 2009 00:25:08 +0000
(
02:25
+0200)
committer
Michael Adam
<obnox@samba.org>
Tue, 12 May 2009 06:41:00 +0000
(08:41 +0200)
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
source3/param/loadparm.c
patch
|
blob
|
history
diff --git
a/source3/param/loadparm.c
b/source3/param/loadparm.c
index ba7c212f7f26d4d25473720997238be89ceb4fb8..da0bf17720c61105e3d388c09b729e7594ad40c5 100644
(file)
--- 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();