[s3]loadparm: remove superfluous talloc context / talloc_stackframe call.
authorMichael Adam <obnox@samba.org>
Wed, 24 Sep 2008 22:54:45 +0000 (00:54 +0200)
committerMichael Adam <obnox@samba.org>
Sat, 27 Sep 2008 20:28:26 +0000 (22:28 +0200)
Michael

source3/param/loadparm.c

index fda086cacff0783ca7675226e602193ab9b9b844..dc7026268b8a91bbdc6b587ec11b4f5e5e256703 100644 (file)
@@ -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);
        }