remove unecessary allocation
authorLaurent Mazet <mazet@softndesign.org>
Tue, 14 Feb 2023 22:24:04 +0000 (23:24 +0100)
committerLaurent Mazet <mazet@softndesign.org>
Tue, 14 Feb 2023 22:24:04 +0000 (23:24 +0100)
program.c

index 43e7b9224437cf5f2722124640daa384b25fb729..dc433aa57ec969f2111aae27f46c526e325cdf73 100644 (file)
--- 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]);