diff options
author | Roland McGrath <roland@redhat.com> | 1993-05-27 21:34:50 +0000 |
---|---|---|
committer | Roland McGrath <roland@redhat.com> | 1993-05-27 21:34:50 +0000 |
commit | 54fb2729675fd6b10f357abcec89700908bdbd5c (patch) | |
tree | a364752e43a2fa92ce80f780547ab9796f0aeb52 /implicit.c | |
parent | e12d722d998d5306b1ede1ea47932a8643aaa794 (diff) | |
download | gunmake-54fb2729675fd6b10f357abcec89700908bdbd5c.tar.gz |
Formerly implicit.c.~12~
Diffstat (limited to 'implicit.c')
-rw-r--r-- | implicit.c | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -513,7 +513,14 @@ pattern_search (file, archive, depth, recursions) if (recursions == 0) { dep->name = 0; - dep->file = enter_file (s); + dep->file = lookup_file (s); + if (dep->file == 0) + /* enter_file consumes S's storage. */ + dep->file = enter_file (s); + else + /* A copy of S is already allocated in DEP->file->name. + So we can free S. */ + free (s); } else { |