summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1997-09-09 20:02:46 +0000
committerMiles Bader <miles@gnu.org>1997-09-09 20:02:46 +0000
commitdaa24765b15f7e86d00438ace52f0f2c558293e9 (patch)
tree62aaaee6dee1c92ec728bada2206d62075bb378f
parentcdac18c62775472d33b22674ba0df20601e05d7d (diff)
(delete):
Immediately free entries without nodes.
-rw-r--r--ftpfs/dir.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/ftpfs/dir.c b/ftpfs/dir.c
index b034a98f..2f6eda34 100644
--- a/ftpfs/dir.c
+++ b/ftpfs/dir.c
@@ -170,7 +170,10 @@ delete (struct ftpfs_dir_entry *e, struct ftpfs_dir *dir)
/* Take out of the directory ordered list. */
ordered_unlink (e);
- /* Now stick in the deleted list. */
+ /* If there's a node attached, we'll delete the entry whenever it goes
+ away, otherwise, just delete it now. */
+ if (! e->node)
+ free_entry (e);
}
/* Clear the valid bit in all DIR's htable. */