Btrfs: free tmp ulist for qgroup rescan
authorJosef Bacik <jbacik@fb.com>
Tue, 20 May 2014 13:23:31 +0000 (09:23 -0400)
committerChris Mason <clm@fb.com>
Tue, 10 Jun 2014 00:20:55 +0000 (17:20 -0700)
Memory leaks are bad mmkay?

Signed-off-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/qgroup.c

index 73f706c9a342d2df19b871051ce596b059ae70d1..cf5aead95a7f6d2eac95c3cd47fc7d56cab92e4b 100644 (file)
@@ -2478,6 +2478,7 @@ static void btrfs_qgroup_rescan_worker(struct btrfs_work *work)
 out:
        kfree(scratch_leaf);
        ulist_free(qgroups);
+       ulist_free(tmp);
        btrfs_free_path(path);
 
        mutex_lock(&fs_info->qgroup_rescan_lock);