Btrfs: fix memory leak when cloning root's node
authorLiu Bo <bo.li.liu@oracle.com>
Thu, 25 Oct 2012 13:30:19 +0000 (07:30 -0600)
committerChris Mason <chris.mason@fusionio.com>
Thu, 25 Oct 2012 19:55:21 +0000 (15:55 -0400)
commit7bfdcf7fbad56c0f1fc3e2d26431bed72bdcce2d
tree7f424418288996ca3f8eae052d703e9699b1e23a
parentc657c3ef1adb2585ed7d2a6db73d0002926a6726
Btrfs: fix memory leak when cloning root's node

After cloning root's node, we forgot to dec the src's ref
which can lead to a memory leak.

Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/ctree.c