summaryrefslogtreecommitdiff
path: root/types.c
diff options
context:
space:
mode:
Diffstat (limited to 'types.c')
-rw-r--r--types.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/types.c b/types.c
index 51a801f..ad98da1 100644
--- a/types.c
+++ b/types.c
@@ -463,7 +463,7 @@ static bool type_of_expr(Typer *tr, Expression *e) {
return false;
}
t->kind = TYPE_PTR;
- t->ptr.of = malloc(sizeof *t->ptr.of); /* OPTIM */
+ t->ptr.of = err_malloc(sizeof *t->ptr.of); /* OPTIM */
*t->ptr.of = *of_type;
break;
case UNARY_DEREF: