Skip to content
Commit 59885b39 authored by Tsutomu Itoh's avatar Tsutomu Itoh Committed by Chris Mason
Browse files

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: default avatarAlex Lyakas <alex@zadarastorage.com>
Signed-off-by: default avatarTsutomu Itoh <t-itoh@jp.fujitsu.com>
Signed-off-by: default avatarChris Mason <clm@fb.com>
parent 776e4aae
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment