From f17ab06e66d55040a1a8e2fc9a70836b6cbd6df4 Mon Sep 17 00:00:00 2001 From: h_vogt Date: Sat, 7 Sep 2013 01:00:13 +0200 Subject: [PATCH] inpcom.c: fix huge memory leak during library handling --- src/frontend/inpcom.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/frontend/inpcom.c b/src/frontend/inpcom.c index f17e98954..707417192 100644 --- a/src/frontend/inpcom.c +++ b/src/frontend/inpcom.c @@ -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; }