From cdbdd17136e7315aeddf5c15b536c19d1993ce7f Mon Sep 17 00:00:00 2001 From: h_vogt Date: Sat, 7 Sep 2013 00:08:05 +0200 Subject: [PATCH] inpcom.c: plug memory leak --- src/frontend/inpcom.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/frontend/inpcom.c b/src/frontend/inpcom.c index 5862028c8..f17e98954 100644 --- a/src/frontend/inpcom.c +++ b/src/frontend/inpcom.c @@ -3175,9 +3175,9 @@ delete_function_env(struct function_env *env) struct function *here = f; f = f -> next; free_function(here); + tfree(here); } - tfree(env -> functions); tfree(env); return up; @@ -3723,6 +3723,7 @@ inp_sort_params(struct line *start_card, struct line *end_card, struct line *car param_name = param_names[i]; for (j = 0; j < num_params; j++) { +// for (j = i + 1; j < num_params; j++) { /* FIXME: to be tested */ if (j == i) continue;