summaryrefslogtreecommitdiff
path: root/conf/confbase.Y
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2022-04-10 18:55:15 +0200
committerMaria Matejka <mq@ucw.cz>2022-05-04 15:37:41 +0200
commitf2f3163f6c3fba7f9ef03640d7b2f6323873d2cc (patch)
treed0f3129250e783d347c63f649b02880abf569c1d /conf/confbase.Y
parentde86040b2cf4ec9bfbb64f0e208a19d4d7e51adc (diff)
Filters always allocate from tmp_linpool
Diffstat (limited to 'conf/confbase.Y')
-rw-r--r--conf/confbase.Y6
1 files changed, 3 insertions, 3 deletions
diff --git a/conf/confbase.Y b/conf/confbase.Y
index 3fdacb12..a81560dc 100644
--- a/conf/confbase.Y
+++ b/conf/confbase.Y
@@ -152,9 +152,9 @@ conf: definition ;
definition:
DEFINE symbol '=' term ';' {
- struct f_val *val = cfg_allocz(sizeof(struct f_val));
- if (f_eval(f_linearize($4), cfg_mem, val) > F_RETURN) cf_error("Runtime error");
- cf_define_symbol($2, SYM_CONSTANT | val->type, val, val);
+ struct f_val val;
+ if (f_eval(f_linearize($4), &val) > F_RETURN) cf_error("Runtime error");
+ cf_define_symbol($2, SYM_CONSTANT | val.type, val, lp_val_copy(cfg_mem, &val));
}
;