summaryrefslogtreecommitdiff
path: root/read.c
diff options
context:
space:
mode:
Diffstat (limited to 'read.c')
-rw-r--r--read.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/read.c b/read.c
index 2d26f24..21dc538 100644
--- a/read.c
+++ b/read.c
@@ -552,6 +552,12 @@ read_makefile (filename, flags)
| (noerror ? RM_DONTCARE : 0)));
}
+ /* Free any space allocated by conditional_line. */
+ if (conditionals->ignoring)
+ free (conditionals->ignoring);
+ if (conditionals->seen_else)
+ free (conditionals->seen_else);
+
/* Restore state. */
conditionals = save;
reading_filename = filename;