summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/eval.c b/eval.c
index 38bfb7e..39eaf8a 100644
--- a/eval.c
+++ b/eval.c
@@ -634,8 +634,8 @@ static bool eval_expr(Evaluator *ev, Expression *e, Value *v) {
if (e->unary.of->type.kind == TYPE_PTR)
free(of.ptr);
else {
- assert(e->unary.of->type.kind == TYPE_ARR);
- free(of.arr);
+ assert(e->unary.of->type.kind == TYPE_SLICE);
+ free(of.slice.data);
}
break;
}