From: Atsushi Nemoto Date: Mon, 1 Dec 2008 22:23:39 +0000 (-0800) Subject: [MTD] physmap: fix leak of memory returned by parse_mtd_partitions X-Git-Tag: v2.6.29-rc1~33^2~23 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=176bf2e0f10ecf1d20a97db3bd5bb2e6ba0b5668;p=pandora-kernel.git [MTD] physmap: fix leak of memory returned by parse_mtd_partitions The mtd partition parser returns an allocated pointer array of mtd_partition. The caller must free it. The array is used only for add_mtd_partitions(), so free it just after the call. Signed-off-by: Atsushi Nemoto Cc: Mike Frysinger Signed-off-by: Andrew Morton Signed-off-by: David Woodhouse --- Reading git-diff-tree failed