From 81a74bfbeccaed846a0dc54e26d520d83a12ffbe Mon Sep 17 00:00:00 2001 From: szaka Date: Sat, 2 Feb 2008 12:28:17 +0000 Subject: [PATCH] ntfs_index_lookup(): fix memory leak on an unlikely error path --- libntfs-3g/index.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libntfs-3g/index.c b/libntfs-3g/index.c index 76879521..1587bf86 100644 --- a/libntfs-3g/index.c +++ b/libntfs-3g/index.c @@ -690,7 +690,7 @@ int ntfs_index_lookup(const void *key, const int key_len, errno = EINVAL; ntfs_log_perror("Index block size (%d) is smaller than the " "sector size (%d)", icx->block_size, NTFS_BLOCK_SIZE); - return -1; + return err_out; } if (ni->vol->cluster_size <= icx->block_size)