Return-Path: Received: from int-mailstore01.merit.edu ([207.75.116.232]:50899 "EHLO int-mailstore01.merit.edu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932116Ab1FGRbA (ORCPT ); Tue, 7 Jun 2011 13:31:00 -0400 Date: Tue, 7 Jun 2011 13:30:58 -0400 From: Jim Rees To: Benny Halevy Cc: linux-nfs@vger.kernel.org, peter honeyman Subject: [PATCH 42/88] SQUASHME: pnfsblock: Fix a memory leak Message-ID: References: Content-Type: text/plain; charset=us-ascii In-Reply-To: Sender: linux-nfs-owner@vger.kernel.org List-ID: MIME-Version: 1.0 From: Zhang Jingwang Array storage is allocated but not freed, free it. Signed-off-by: Zhang Jingwang Acked-by: J. Bruce Fields Signed-off-by: Benny Halevy --- fs/nfs/blocklayout/extents.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) 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; } -- 1.7.4.1