From: Aneesh Kumar K.V Date: Fri, 17 Jul 2009 13:01:04 +0000 (-0400) Subject: ext4: Fix memory leak fix when mounting an ext4 filesystem X-Git-Tag: v2.6.32-rc1~633^2~63 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=024eab4d5bf7e3168a2b71038b3e04e6b1f376ed;p=pandora-kernel.git ext4: Fix memory leak fix when mounting an ext4 filesystem The allocation of the ext4_group_info array was moved to a new function ext4_mb_add_group_info() in commit 5f21b0e6 so that online resize would use a common (and correct) codepath. Unfortunately, the call to the new ext4_mb_add_group_info() function was added without removing the code which originally allocated the array. This caused a memory leak each time an ext4 filesystem was mounted. The fix is simple; remove the code that did the original allocation, since it is no longer needed. Reported-by: Catalin Marinas Tested-by: Catalin Marinas Signed-off-by: Aneesh Kumar K.V Signed-off-by: "Theodore Ts'o" --- Reading git-diff-tree failed