From 61fefe31bbbcd12e3a29175f2d134674a3fecbf6 Mon Sep 17 00:00:00 2001 From: h_vogt Date: Sat, 14 Sep 2013 14:16:56 +0200 Subject: [PATCH] inpcom.c: move delete_libs to a safer place outside of recursions --- src/frontend/inpcom.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/frontend/inpcom.c b/src/frontend/inpcom.c index 24c17b188..5952bd4bb 100644 --- a/src/frontend/inpcom.c +++ b/src/frontend/inpcom.c @@ -803,11 +803,10 @@ inp_readall(FILE *fp, int call_depth, char *dir_name, bool comfile, bool intfile unsigned int no_braces; /* number of '{' */ size_t max_line_length; /* max. line length in input deck */ - struct line *tmp_ptr1; - struct names *subckt_w_params = new_names(); + delete_libs(); inp_fix_for_numparam(subckt_w_params, working); // tprint(cc); /* test printout to file tprint-out.txt */ @@ -2535,7 +2534,6 @@ expand_section_references(struct line *c, int call_depth, char *dir_name) } } - delete_libs(); }