diff mbox

[42/88] SQUASHME: pnfsblock: Fix a memory leak

Message ID b1224e7ad7399d145cbdb0a73379bd65bab9f0c7.1307464382.git.rees@umich.edu (mailing list archive)
State New, archived
Headers show

Commit Message

Jim Rees June 7, 2011, 5:30 p.m. UTC
From: Zhang Jingwang <zhangjingwang@nrchpc.ac.cn>

Array storage is allocated but not freed, free it.

Signed-off-by: Zhang Jingwang <zhangjingwang@nrchpc.ac.cn>
Acked-by: J. Bruce Fields <bfields@fieldses.org>
Signed-off-by: Benny Halevy <bhalevy@panasas.com>
---
 fs/nfs/blocklayout/extents.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
diff mbox

Patch

diff --git a/fs/nfs/blocklayout/extents.c b/fs/nfs/blocklayout/extents.c
index 09a7c5c..288a38a 100644
--- a/fs/nfs/blocklayout/extents.c
+++ b/fs/nfs/blocklayout/extents.c
@@ -181,6 +181,7 @@  static int _preload_range(struct my_tree_t *tree, u64 offset, u64 length)
 			break;
 		kfree(storage[i]);
 	}
+	kfree(storage);
 	return status;
 }