From daa24765b15f7e86d00438ace52f0f2c558293e9 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Tue, 9 Sep 1997 20:02:46 +0000 Subject: (delete): Immediately free entries without nodes. --- ftpfs/dir.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'ftpfs/dir.c') 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. */ -- cgit v1.2.3