summaryrefslogtreecommitdiff
path: root/rule.c
diff options
context:
space:
mode:
Diffstat (limited to 'rule.c')
-rw-r--r--rule.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/rule.c b/rule.c
index 8311fb6..a6928df 100644
--- a/rule.c
+++ b/rule.c
@@ -401,15 +401,8 @@ static void
freerule (struct rule *rule, struct rule *lastrule)
{
struct rule *next = rule->next;
- struct dep *dep;
- dep = rule->deps;
- while (dep)
- {
- struct dep *t = dep->next;
- free_dep (dep);
- dep = t;
- }
+ free_dep_chain (rule->deps);
free (rule->targets);
free (rule->suffixes);