From: Michael Adam Date: Wed, 24 Sep 2008 22:54:45 +0000 (+0200) Subject: [s3]loadparm: remove superfluous talloc context / talloc_stackframe call. X-Git-Tag: samba-4.0.0alpha6~769^2~228^2~131 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1578610aefe28be1b121f3a957787e98a5536b85;p=thirdparty%2Fsamba.git [s3]loadparm: remove superfluous talloc context / talloc_stackframe call. Michael --- diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index fda086cacff..dc7026268b8 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -7188,8 +7188,6 @@ bool lp_do_parameter(int snum, const char *pszParmName, const char *pszParmValue parmnum = map_parameter(pszParmName); if (parmnum < 0) { - TALLOC_CTX *frame; - if (strchr(pszParmName, ':') == NULL) { DEBUG(0, ("Ignoring unknown parameter \"%s\"\n", pszParmName)); @@ -7200,13 +7198,10 @@ bool lp_do_parameter(int snum, const char *pszParmName, const char *pszParmValue * We've got a parametric option */ - frame = talloc_stackframe(); - opt_list = (snum < 0) ? &Globals.param_opt : &ServicePtrs[snum]->param_opt; set_param_opt(opt_list, pszParmName, pszParmValue); - TALLOC_FREE(frame); return (True); }