From: Tsutomu Itoh Date: Wed, 9 Apr 2014 00:18:04 +0000 (+0900) Subject: Btrfs: fix possible memory leak in btrfs_create_tree() X-Git-Tag: omap-for-v3.16/fixes-against-rc1~54^2~48 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=59885b39303edc0b3284f324a1ca42cb6e7742d0;p=pandora-kernel.git Btrfs: fix possible memory leak in btrfs_create_tree() In btrfs_create_tree(), if btrfs_insert_root() fails, we should free root->commit_root. Reported-by: Alex Lyakas Signed-off-by: Tsutomu Itoh Signed-off-by: Chris Mason --- Reading git-diff-tree failed