From: Laurent Mazet Date: Tue, 14 Feb 2023 22:24:04 +0000 (+0100) Subject: remove unecessary allocation X-Git-Tag: v1.1~3^2~4 X-Git-Url: https://secure.softndesign.org/git/?a=commitdiff_plain;h=eeb2d6a88121e666f0de5a64899a49f54c56bbbf;p=calc.git remove unecessary allocation --- diff --git a/program.c b/program.c index 43e7b92..dc433aa 100644 --- a/program.c +++ b/program.c @@ -100,13 +100,8 @@ double call (int id, int nbargs, element_t **args) delelement (elements); /* clean arguments */ - if (argument) { - free_tab (argument); - } + free_tab (argument); argument = NULL; - if (nbargs > 0) { - def (nbargs, args); - } /* restore context */ backup_ws (programs[n]);