From 8fd02fa2d6bdedbda1657a15f602bb4384367251 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 31 May 2012 15:06:58 -0700 Subject: Forward port of Richard Sharpe's fix for bug #8970 - Possible memory leaks in the samba master process. --- source3/winbindd/winbindd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source3/winbindd') diff --git a/source3/winbindd/winbindd.c b/source3/winbindd/winbindd.c index 22056e26ca..248f747ee4 100644 --- a/source3/winbindd/winbindd.c +++ b/source3/winbindd/winbindd.c @@ -65,11 +65,12 @@ static bool reload_services_file(const char *lfile) bool ret; if (lp_loaded()) { - const char *fname = lp_configfile(); + char *fname = lp_configfile(); if (file_exist(fname) && !strcsequal(fname,get_dyn_CONFIGFILE())) { set_dyn_CONFIGFILE(fname); } + TALLOC_FREE(fname); } /* if this is a child, restore the logfile to the special -- cgit