summaryrefslogtreecommitdiff
path: root/rule.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2009-09-27 02:15:36 +0000
committerPaul Smith <psmith@gnu.org>2009-09-27 02:15:36 +0000
commitde51755f651d96ac31ebae87d4c1976b6a00e936 (patch)
treee78361ae6cb8cd6391c58ce7f3828ac5162f150a /rule.c
parent6b9461d66b86163beaac24d785340a8651778a8c (diff)
downloadmake-de51755f651d96ac31ebae87d4c1976b6a00e936.tar.gz
- Add static pattern targets to the string cache.
- Use specific free_*() calls where appropriate.
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 8311fb6b..a6928dfd 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);