cproc

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.nihaljere.xyz/cproc
Log | Files | Refs | Submodules | README | LICENSE

commit a8a096d9df2628dc470ff66ef1fe3f5941b86609
parent 65a3036d8cb03b107aca6e21597b582a46f283a0
Author: Michael Forney <mforney@mforney.org>
Date:   Wed, 24 Apr 2019 21:45:54 -0700

Free function call argument lists

Diffstat:
Mqbe.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git 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: