inpcom.c: fix huge memory leak during library handling

This commit is contained in:
h_vogt 2013-09-07 01:00:13 +02:00 committed by rlar
parent cdbdd17136
commit f17ab06e66
1 changed files with 2 additions and 0 deletions

View File

@ -74,6 +74,7 @@ struct func_temper
struct func_temper *next;
};
extern void line_free_x(struct line *deck, bool recurse);
static COMPATMODE_T inp_compat_mode;
@ -2469,6 +2470,7 @@ expand_section_references(struct line *c, int call_depth, char *dir_name)
}
t->li_line[0] = '*';
t->li_line[1] = '>';
line_free_x(t->li_next, TRUE);
t->li_next = rest;
}