Browse Source

inpcom.c: plug memory leak

pre-master-46
h_vogt 13 years ago
committed by rlar
parent
commit
cdbdd17136
  1. 3
      src/frontend/inpcom.c

3
src/frontend/inpcom.c

@ -3175,9 +3175,9 @@ delete_function_env(struct function_env *env)
struct function *here = f; struct function *here = f;
f = f -> next; f = f -> next;
free_function(here); free_function(here);
tfree(here);
} }
tfree(env -> functions);
tfree(env); tfree(env);
return up; 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]; param_name = param_names[i];
for (j = 0; j < num_params; j++) { for (j = 0; j < num_params; j++) {
// for (j = i + 1; j < num_params; j++) { /* FIXME: to be tested */
if (j == i) if (j == i)
continue; continue;

Loading…
Cancel
Save