]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
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 1d3e9262a9da274f7ea889a0d71a61de16ededb7..7527523c2d2d851ce1200424dce799814ac5a1fa 100644 (file)
@@ -3582,6 +3582,7 @@ static noinline int cache_drop_leaf_ref(struct btrfs_trans_handle *trans,
                info++;
        }
 
+       kfree(sorted);
        return 0;
 }