--- trunk/grid-mw-security/ees/src/eval_man/pdl_yacc.y 2009/07/15 10:11:29 529 +++ trunk/grid-mw-security/ees/src/eval_man/pdl_yacc.y 2009/07/15 10:55:33 530 @@ -72,9 +72,9 @@ | var_list var ; -var: TERM '=' string { add_variable($1, $3); free($3); } - | TERM '=' TERM { add_variable($1, $3); free($3); } - | PVAR '=' path '\n' { set_path($3); free($3); } +var: TERM '=' string { add_variable($1, $3); } + | TERM '=' TERM { add_variable($1, $3); } + | PVAR '=' path '\n' { set_path($3); } | PVAR '=' { ng_log(LOG_ERR, "No value assigned to path. Using %s as path instead.", pdl_path()); } /* | TERM '=' { ng_log(LOG_ERR, "No value assigned to %s.", $1->string); } @@ -83,14 +83,14 @@ ; string: STRING { $$ = $1; } - | string STRING { $$ = concat_strings($1, $2); free($2); } + | string STRING { $$ = concat_strings($1, $2); } ; path: PATH { $$ = $1; } - | path PATH { $$ = concat_strings($1, $2); free($2); } + | path PATH { $$ = concat_strings($1, $2); } ; -policy_list: LABEL policy { add_policy($1, $2); } +policy_list: LABEL policy { add_policy($1, $2); } | policy_list LABEL policy { add_policy($2, $3); } | policy_list LABEL { ng_log(LOG_WARNING, "expecting rule definitions."); ng_log(LOG_WARNING, "no rules specified for policy: '%s' at line %d.", $2->string, $2->lineno);