summaryrefslogtreecommitdiff
path: root/remake.c
diff options
context:
space:
mode:
Diffstat (limited to 'remake.c')
-rw-r--r--remake.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/remake.c b/remake.c
index 2dfade3..a752734 100644
--- a/remake.c
+++ b/remake.c
@@ -264,6 +264,7 @@ update_goal_chain (struct dep *goals)
just_print_flag = n;
job_slots = j;
}
+
return status;
}
@@ -306,6 +307,9 @@ update_file (struct file *file, unsigned int depth)
status |= update_file_1 (f, depth);
check_renamed (f);
+ /* Clean up any alloca() used during the update. */
+ alloca (0);
+
/* If we got an error, don't bother with double_colon etc. */
if (status != 0 && !keep_going_flag)
return status;