From 2fa89952ff8ed155b83557af34923583f057ddcd Mon Sep 17 00:00:00 2001 From: jpandre Date: Wed, 12 Mar 2008 16:22:24 +0000 Subject: [PATCH] Fixed cache creation when mount fails --- libntfs-3g/volume.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libntfs-3g/volume.c b/libntfs-3g/volume.c index 4582b374..2cea710e 100644 --- a/libntfs-3g/volume.c +++ b/libntfs-3g/volume.c @@ -1127,8 +1127,8 @@ ntfs_volume *ntfs_mount(const char *name __attribute__((unused)), int eo = errno; ntfs_device_free(dev); errno = eo; - } - ntfs_create_lru_caches(vol); + } else + ntfs_create_lru_caches(vol); return vol; #else /*