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
correct a memory leak
[calc.git]
/
parser.c
diff --git
a/parser.c
b/parser.c
index ed39dd78e72e2ca55fcd642b56a9e4cfae943307..2e83a4f451f74a766e1b70e2b3c2f3567eafdf50 100644
(file)
--- a/
parser.c
+++ b/
parser.c
@@
-1210,7
+1210,7
@@
void free_completion_list (char **list)
int i;
if (list) {
- for (i = 0; i < NB_
FUNCTIONS + NB_CONSTANTS
; i++) {
+ for (i = 0; i < NB_
OPERATORS + NB_FUNCTIONS + NB_CONSTANTS + NB_SYMBOLS + 1
; i++) {
if (list[i] != NULL) {
free (list[i]);
}