aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--qbe.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/qbe.c b/qbe.c
index 465634f..6d720ca 100644
--- a/qbe.c
+++ b/qbe.c
@@ -665,9 +665,11 @@ funcexpr(struct func *f, struct expr *e)
}
*argval = NULL;
op = e->call.func->type->base->func.isvararg ? IVACALL : ICALL;
- return funcinstn(f, op, e->type == &typevoid ? NULL : e->type->repr, argvals);
+ v = funcinstn(f, op, e->type == &typevoid ? NULL : e->type->repr, argvals);
+ free(argvals);
//if (e->call.func->type->base->func.isnoreturn)
// funcret(f, NULL);
+ return v;
case EXPRUNARY:
switch (e->unary.op) {
case TBAND: