Soft'N'Design Software
/
projects
/
calc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix a memory leak
[calc.git]
/
program.c
diff --git
a/program.c
b/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]);