summaryrefslogtreecommitdiff
path: root/source3/param
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2012-05-31 15:06:58 -0700
committerJeremy Allison <jra@samba.org>2012-05-31 16:08:44 -0700
commit8fd02fa2d6bdedbda1657a15f602bb4384367251 (patch)
tree1895c33c04d9dc0b3376308a126a037748a9c2ae /source3/param
parentf6e41026f89deb5393e239b9dc83b287e5c7d6ed (diff)
downloadsamba-8fd02fa2d6bdedbda1657a15f602bb4384367251.tar.gz
samba-8fd02fa2d6bdedbda1657a15f602bb4384367251.tar.bz2
samba-8fd02fa2d6bdedbda1657a15f602bb4384367251.zip
Forward port of Richard Sharpe's <realrichardsharpe@gmail.com> fix for bug #8970 - Possible memory leaks in the samba master process.
Diffstat (limited to 'source3/param')
-rw-r--r--source3/param/loadparm.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index 11ff646cb6..1c78b5831c 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -8809,7 +8809,11 @@ static bool lp_load_ex(const char *pszFname,
}
}
- lp_add_auto_services(lp_auto_services());
+ {
+ char *serv = lp_auto_services();
+ lp_add_auto_services(serv);
+ TALLOC_FREE(serv);
+ }
if (add_ipc) {
/* When 'restrict anonymous = 2' guest connections to ipc$