Btrfs: Fix memory leak in cache_drop_leaf_ref
authorChris Mason <chris.mason@oracle.com>
Thu, 5 Feb 2009 14:08:14 +0000 (09:08 -0500)
committerChris Mason <chris.mason@oracle.com>
Thu, 5 Feb 2009 14:08:14 +0000 (09:08 -0500)
The code wasn't doing a kfree on the sorted array

Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/extent-tree.c

index 1d3e926..7527523 100644 (file)
@@ -3582,6 +3582,7 @@ static noinline int cache_drop_leaf_ref(struct btrfs_trans_handle *trans,
                info++;
        }
 
+       kfree(sorted);
        return 0;
 }