From patchwork Tue Jun 7 17:30:58 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jim Rees X-Patchwork-Id: 858342 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.3) with ESMTP id p57HV7qa013190 for ; Tue, 7 Jun 2011 17:31:07 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932119Ab1FGRbA (ORCPT ); Tue, 7 Jun 2011 13:31:00 -0400 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 Received: from localhost (localhost.localdomain [127.0.0.1]) by int-mailstore01.merit.edu (Postfix) with ESMTP id 1304E305A9CC; Tue, 7 Jun 2011 13:31:00 -0400 (EDT) X-Virus-Scanned: amavisd-new at int-mailstore01.merit.edu Received: from int-mailstore01.merit.edu ([127.0.0.1]) by localhost (int-mailstore01.merit.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ylLlj58q6b3W; Tue, 7 Jun 2011 13:30:59 -0400 (EDT) Received: from merit.edu (host-17.subnet-17.med.umich.edu [141.214.17.17]) by int-mailstore01.merit.edu (Postfix) with ESMTPSA id 8655A3055B74; Tue, 7 Jun 2011 13:30:59 -0400 (EDT) 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: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Tue, 07 Jun 2011 17:31:07 +0000 (UTC) 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; }